Page 1 of 1

Cannot create temporary file (image upload)

Posted: Mon Dec 24, 2007 2:29 pm
by GeXus
I'm trying to upload some images, I'm using an image upload class from http://www.verot.net/php_class_upload.htm..

I'm on a new server and am having problems creating the temporary file... I'm pretty certain it's not related to the class, but I just put it here as an FYI...

My file_uploads are turned on in php.ini and the upload_tmp_dir is blank, meaning it uses the system default...

Does anyone know what I should do?

Posted: Mon Dec 24, 2007 3:58 pm
by alex.barylski
Check the permissions for the file upload directory and the temp directory...instead of relying on the blank setting override that with a real path and try that. Make sure the file is less than the php.ini allowed size. change your execution time from 30 seconds to 5 minutes if it's a big file...

Posted: Mon Dec 24, 2007 4:35 pm
by Jonah Bron
Below is the Offical Word to Picture to Video conversion table, hockey:

p = picture
w = word
v = video

p = 1,000w
v = 1,000,000w

w = 0.001p
v = 1,000p

p = 1000v
w = 0.0000001v

Posted: Mon Dec 24, 2007 4:55 pm
by GeXus
Hockey wrote:Check the permissions for the file upload directory and the temp directory...instead of relying on the blank setting override that with a real path and try that. Make sure the file is less than the php.ini allowed size. change your execution time from 30 seconds to 5 minutes if it's a big file...
I checked permissions to /tmp and changed them to 777, still doesn't work... The max file size is 2M, and the file is about 20k