On May 12, 2011, at 06:29, Ross wrote:

> I'm using 
> http://www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images_with_cakephp
> 
> I'm unable to duplicate the problem, but a client using an early
> version of an app says that they can't upload PNG images without
> getting an error (Error: XXX.png cannot be uploaded. Acceptable file
> types: JPG, GIF, PNG).
> 
> I'm at a loss as the upload appears to work fine for me. He is using
> IE8.
> 
> I don't really have much to go on - has anyone experienced a problem
> uploading with CakePHP and IE before? I am able to use the app and
> upload using IE with no issues, but I'm at a loss.

Either the file the user is uploading is not a PNG (or GIF or JPG) file 
(despite it having the .png extension), or the browser the customer is using is 
not properly sending the file's MIME type when uploading it to the server. Have 
the user try a different browser. If the problem persists, suspect that the 
error message is right -- that the file type is not acceptable. (Confirm the 
file's contents using other means -- have the customer try to open it in an 
image viewing program that can give information about the file and display its 
filetype.)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to