Can not create Temporary File

See all posts Reply

Can not create Temporary File new!
by Owen Lees, 15 years, 10 months ago
Hi Colin, I am recieving this error message on my MAMP installation on my Mac, however using a conventional move_uploaded_files works just fine.

I checked the log and get this line:

- attempting creating a temp file: failed

Would you be so kind as to point out where the temp files are processed? I have full perms on the target dir and can see files being uploading into the php tmp dir - the FILES array is populated.

The class seems to barf out big style on $handle->uploaded.

I have checked exactly the same code on our development server and it works just fine.

I hope you can shed some light.

OwenReply
Re: Can not create Temporary File new!
by colin, 15 years, 10 months ago
Can you copy here the complete log generated by the class? Can you also link to the phpinfo() of your Mac (or a copy of it)?Reply
Re: Can not create Temporary File new!
by Joeri, 15 years, 10 months ago
I have the same problem.
Below is my log file.

system information
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : /www/htdocs/keesinternetnl/:/tmp:/usr/share/php
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- source variables
file_src_name : Forest Flowers.jpg
file_src_name_body : Forest Flowers
file_src_name_ext : jpg
file_src_pathname : /tmp/phpnktTHE
file_src_mime : application/octet-stream
file_src_size : 128755 (max= 20971520)
file_src_error : 0
process file to /www/htdocs/keesinternetnl/http/fotoalbum/uploads/thumbs/
- file size OK
- file mime OK : application/octet-stream
- file name safe format
- destination variables
file_dst_path : /www/htdocs/keesinternetnl/http/fotoalbum/uploads/thumbs/
file_dst_name_body : Forest_Flowers
file_dst_name_ext : jpg
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : Forest_Flowers.jpg
file_dst_pathname : /www/htdocs/keesinternetnl/http/fotoalbum/uploads/thumbs/Forest_Flowers.jpg
- Forest_Flowers.jpg doesn't exist already
- attempting creating a temp file:/www/htdocs/keesinternetnl/http/fotoalbum/uploads/thumbs/ failed
Reply
Re: Can not create Temporary File new!
by colin, 15 years, 10 months ago
Are you sure /www/htdocs/keesinternetnl/http/fotoalbum/uploads/thumbs/ is writeable by your web server? Try to chmod it to 777 just to see what it does.

In your example above, can you check if /tmp/phpnktTHE is a valid image?Reply