Can`t upload PNG files

See all posts See thread 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