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?
Cannot create temporary file (image upload)
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
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 20kHockey 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...