123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|603|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> php file upload help

Sat, 04 Dec 2010, 08:19
waroffice
Im having trouble with file uploads, the form/POST bit works fine, i get $_FILES["file"]["error"]=0 so it was uploaded fine and $_FILES["file"]["tmp_name"] returns a filename.

What im having problems with is the saving of the file.


is returning FALSE but can't find where the error is coming from.

Googleing it has produced no results.

Sat, 04 Dec 2010, 08:24
waroffice
every time i post on the forum it takes me minutes to figure it out.

All sorted

was a permissions thing, i created the directory with the root user :S
Sat, 04 Dec 2010, 08:30
Jayenkai
LOL, every time
Sat, 04 Dec 2010, 11:23
steve_ancell
Even more embarrassing when you have worked out a problem on your own in the past, only to find you have forgotten how to do it and cannot even think of where to start. Then comes the more embarrassing part when you have to post on a forum and somebody replies with an answer that was staring you straight in the face.

Well done for managing to work it out in the end and all by yourself, it shows that you are making an excellent effort in trying.
Sat, 04 Dec 2010, 13:19
CodersRule
One time.... I forgot how to do something, and posted on a forum about it. Someone responded with a link to a thread on how to do it... A thread I had made. XD
Sat, 04 Dec 2010, 20:31
Stealth
Permissions can get really annoying.