BloodyMind Posted September 8, 2008 Share Posted September 8, 2008 Hey there, I got a problem with the file upload in an advanced contact form which have attachments for Resume and such my problem is when i upload the file I get this Error: Warning: move_uploaded_file(/home/xxx/public_html/test/attachments/) [function.move-uploaded-file]: failed to open stream: Is a directory in /home/xxx/public_html/test/contact.php on line 13 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpaOoPbE' to '/home/xxx/public_html/test/attachments/' in /home/xxx/public_html/test/contact.php on line 13 and i have the permission to attachments to '777' does anyone got a clue? thanx in advance for your support Quote Link to comment Share on other sites More sharing options...
webxan Posted September 9, 2008 Share Posted September 9, 2008 move_uploaded_file() function checks to ensure that the file designated by filename is a valid upload file. Also it takes files as an argument and not just directory. So check if the arguments are correct ie path and filename. Quote Link to comment Share on other sites More sharing options...
BloodyMind Posted September 11, 2008 Author Share Posted September 11, 2008 I have checked the arguments but everything seems fine anyone got a clue ?!!! Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 11, 2008 Share Posted September 11, 2008 need to see code. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 11, 2008 Share Posted September 11, 2008 Both of the error messages are indicating that the destination is a folder and is not a path/file name. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.