Weird upload path issue..
I'm designing a Facebook App where I use an upload/mod page to set an image based on a Facebook PageID (numeric variable).
I can't get the images to upload to a directory location that is a variable but yet the value exists as it successfully echos
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../LikeMeReward/".$row_rsDetails['fb_pageId']."/",
'FileName' => "[FileName]",
'DefaultFileName' => "".$row_rsDetails['fb_image'] ."",
'ResizeType' => "2",
'ResizeWidth' => "520",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "fileFld", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);
}
?>
Then this echo shows that the code knows where to put the file:
<?php echo $WA_UploadResult1_Params["WA_UploadResult1_1"]['UploadFolder'];
?>
Result: ../LikeMeReward/267878713237529 /
But yet no uploads will go to a variable based upload path. It WILL go to location on the path up until the variable.
This makes me think that the helperphp.php page may be restructuring or restricting the path?