Page 1 of 1
WTF uploads :)
Posted: Mon Feb 19, 2007 2:06 pm
by alex.barylski
I'm getting this error:
Code: Select all
The file "test.pdf" could not be uploaded: Unable to move '/tmp/phpnJFXY2' to '/home/virtual/site116/fst/var/www/html/owners/test.pdf'.
Everything uploads into the /html directory fine, but /html/owners throws this error???
Permissions in /owners is 775 so I'm sure it's not that...any ideas?
Posted: Mon Feb 19, 2007 2:08 pm
by Mightywayne
Have you turned it to 777 just to be sure?
Posted: Mon Feb 19, 2007 5:22 pm
by alex.barylski
My bad, I should have checked...thanks
Not sure I'm comfortable with that as a fix, but whatever

Posted: Mon Feb 19, 2007 7:40 pm
by feyd
You could FTP the files instead.

Posted: Mon Feb 19, 2007 10:15 pm
by RobertGonzalez
Yeah, I'm not a big proponent of leaving my filesystem 777. Especially when allowing uploads. Is FTP not an option?
Posted: Tue Feb 20, 2007 6:06 am
by SteveMellor
You could (and I am thinking not only outside the box but quite far away from the whole package) have your upload script:
- Target the directory you want to upload to
CHMOD it on the fly
Upload the file
CHMOD back
But that is overkill I think and I'm not sure it would work on some servers.
Posted: Tue Feb 20, 2007 6:52 am
by jayshields
AFAIK if you don't have the permission (via PHP) to upload files to a 755 folder then you won't have permission to CHMOD the folder to 777 either; it wouldn't make sense.
timvw (or anyone) is probably alot better to ask about something like this than me.