$_FILES['Filedata']['tmp_name']
Hi,
My issue is related to uploading an image via a Flash frontend to a php script. Currently the process is working correctly in a simplified manner. The swf file will post the user selected image to a php file which contains the following simple code:
<?php
//create the directory if doesn't exists (should have write permissons)
if(!is_dir("./files")) mkdir("./files", 0755);
//move the uploaded file
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
chmod("./files/".$_FILES['Filedata']['name'], 0777);
?>
However, I have been trying to replace this simple php function above with a Digital File Pro 2 Upload File function. I would like to get a DFP2 Upload Function working off the $_FILES['Filedata']['tmp_name'] value instead of the usual form field value such as the script above does.
In my testing to date, I have not been able to get DFP2 to accept $_FILES['Filedata']['tmp_name'] as the filefield to work with. Have tried feeding the value via a session value as well as a hidden form field value - but no luck.
Any help will be greatly appreciated. Thanks in advance.