August 4th, 2000, 08:44 AM
I am attempting to setup a file upload and I am getting an error message which is stumping me We are using Apache on Redhat 6.2
Here is the error message we get when we attempt to upload an image
Warning: Unable to create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No
such file or directory in /home/jj/picparty.com/add.php3 on line 6
failed to copy file
upload tmp file:
target file name:
target directory: c:apachehtdocstmp
Thanks for any feedback. I believe the problem is buried within our server.
August 18th, 2000, 07:46 AM
What does line 6 of add.php3 say?
August 18th, 2000, 01:09 PM
It's most probably just a file/directory permission thing. The PHP process executes server commands under the username and group 'nobody', so unless your directory is world-writeable OR is chowned to nobody:nobody, PHP will be unable to upload a file. For better security, I recommend the second choice; just create a directory for upload and chown it to nobody:nobody.
August 18th, 2000, 03:34 PM
>>so unless your directory is world-writeable OR is chowned to nobody:nobody
Yes. So at /home/jj/picparty.com/users/ss/tmp/, the "tmp" directory needs to be chmodded 757 so "nobody" has the write permission. Please note that to copy to, to need write permission.