DFP 1- delete file from specific folder not working
Hi-
I'm trying to delete a file using the delete file server behavior. It works fine as long as the folder isn't specific. However when I add the path for a different subfolder, it doesn't work.
(However the Insert and Update versions do, using the same method). Here is the code:
<?php //$folder comes in from the delete button links on Detail and Results pages
if (!session_id()) session_start();
$folder= ((isset($_GET["foldername"]))?$_GET["foldername"]:"");
?>
<?php //$_POST['file'] is posted with a hidden field down in the form, with the value coming from a recordset.
$WA_DeleteFileResult1 = false;
if(isset($_POST["Delete_x"])){
$WA_DeleteFileResult1 = WA_FileAssist_DeleteFile("../FILES/".$folder, "".((isset($_POST["file"]))?$_POST["file"]:"") ."");
}
?>
it works if I don't include ".$folder" in the path, but i need that functionality. Any help?
Thanks, Justin