Cannot create temporary file (image upload)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Cannot create temporary file (image upload)

Post 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?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post 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
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post 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
Post Reply