My uploads don't upload!

I would like to know how to modify the upload.php file for really upload a file. I have try to insert into this code: move_uploaded_file($_FILES['Filedata']['tmp_name'], $myDir); but the file don't appear in the $myDir directory on the server.

gyphie's picture

Error capturing

Check your server logs for an error (not the access logs but the error logs) and/or do a packet capture. This should allow you to capture any error messages outputted by move_uploaded_file. If the problem is not related to SWFUpload you can use a regular HTML form to get your upload.php working and then switch over to SWFUpload.

<input type="file">

Excuse me, but perhaps I have not understood well SWFupload: It need a tag?

gyphie's picture

Review doc

Please review the documentation and the sample demos.

SWFUpload is a JavaScript library that preforms an Ajax like upload using the Flash Player.

http://demo.swfupload.org/Documentation/