View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Thread began 1/19/2010 12:48 am by info315909 | Last modified 1/19/2010 7:30 pm by info315909 | 3769 views | 3 replies




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:

//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.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...