Can`t upload PNG files

See all posts Reply

Can`t upload PNG files new!
by Maxchen, 13 years, 8 months ago
Hi,
when I try to upload the PNG file, script wrote error "Incorrect type of file"Reply
Re: Can`t upload PNG files new!
by colin, 13 years, 8 months ago
Can you copy here the log produced by the class?Reply
Re: Can`t upload PNG files new!
by sakiss, 13 years, 5 months ago
Hi

I am getting the same error with png files

Thats the log
process file to /home/mysite/public_html/test2/media/attributemanager/src/
- file size OK
- script blue.png renamed as blue.png.txt!
- error: Incorrect type of file.

I am using the image_convert function. I have set an if check to check the fie extension but the error still produced

code:
if($handle->file_src_name_ext!='png' || $handle->file_src_name_ext!='PNG') {$handle->image_convert = 'png';}Reply
Re: Can`t upload PNG files new!
by colin, 13 years, 5 months ago
It is probably a MIME type issue. Your system may not be set up to detect MIME types properly.

The MIME detection log is it the start of the log. See which method it uses, and why it cannot recognize the image.Reply