Forum Moderators: coopster

Message Too Old, No Replies

File Upload Error

         

mhoctober

8:57 pm on Jan 1, 2006 (gmt 0)

10+ Year Member



All...

I am constantly getting this error when I try to run a php script (form based) that allows a user to upload a file...

Warning: copy(/files/jack_album.jpg): failed to open stream: No such file or directory in /home/seeasale/public_html/load.php on line 155
Error Uploading File.

Things I know...

- the file does exist on my hard drive
- permissions are set correctly for the folder on the server (777)
- the files folder does exist (I have tried several ways to reference it in the .php file - all give the same error result).

Help!

coopster

9:18 pm on Jan 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have you tried move_uploaded_file() [php.net] and some of the troubleshooting tips on the Handling File Uploads [php.net] page?