Dynamic Upload Folder Difficulties
Hi there,
I've searched the boards but cannot resolve my issue, though it is similar to others who have posted.
I'm trying to do a combination of static plus dynamic for the folder I'm uploading photos to. The problem is that the dynamic portion is not working, and the images are uploading to the static portion only (which is created with no problem by the uploader.
Any help would be greatly appreciated. The code is currently as follows:
$var3_rsChallenge = "-1";
if (isset($_GET['contest'])) {
$var3_rsChallenge = $_GET['contest'];
}
mysql_select_db($database_myisateam, $myisateam);
$query_rsChallenge = sprintf("SELECT * FROM challenges WHERE challenge_id=%s", GetSQLValueString($var3_rsChallenge, "int"));
$rsChallenge = mysql_query($query_rsChallenge, $myisateam) or die(mysql_error());
$row_rsChallenge = mysql_fetch_assoc($rsChallenge);
$totalRows_rsChallenge = mysql_num_rows($rsChallenge);?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "pics/".$row_rsChallenge['pictures_folder'] ."",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "pics/".$row_rsChallenge['pictures_folder'] ."",
'FileName' => "[FileName]_thumb",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "60",
'ResizeHeight' => "60",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End