I have a user that is having a problem with the file upload feature of php. This is the error:
Warning: Unable to create '/home/username/public_html/foldername/images/user_photos/1018286511_jelon2.jpg': Permission denied in /home/username/public_html/folder/photo_upload.html on line 10
failed to copy file
Any ideas?
shlex
04-09-2002, 09:58 PM
It looks like he doesn't have the -r-w-e permission on the directory. You need it in order to copy file into the directory.
I think you mean -r-w-x, which is already set.. but still having the issue. Anything else?
SixthSense
04-10-2002, 03:44 AM
Originally posted by Haze
I have a user that is having a problem with the file upload feature of php. This is the error:
Warning: Unable to create '/home/username/public_html/foldername/images/user_photos/1018286511_jelon2.jpg': Permission denied in /home/username/public_html/folder/photo_upload.html on line 10
failed to copy file
Any ideas?
i dont think the path you provided above is on the raq by default unless until you have specifically created that directories.
/home/username/public_html/foldername/ <-- this is gennerally on the linux boxes with cpanel on them.
On the raq it should be something like this
/home/sites/site##/web/foldername/images/......
where ## = site no.
if you are running that script on a virtual account on a raq.
Hope that helps
Yeah, I know. I had posted it here by accident. I had requested the mod's move it for me already.
shlex
04-10-2002, 10:47 AM
It may caused by another reason that the user doesn't have permission on /tmp.
When he do a copy file, php will upload files to /tmp first, then copy to the specific directory.