This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Documentation » sfFileValidator
sfFileValidator [message #43633] Thu, 17 January 2008 23:13
ouillonn  is currently offline ouillonn
Messages: 67
Registered: July 2007
Member
Hi everybody,

I think it may be usefull to write down in the documentation of sfFileValidator that the order of the mime-types is actually VERY important, especially for the Internet Explorer.

I had an interesting experience with that little trap. I added the mime "image/gif" in the middle of the list like that:

    sfFileValidator:
      mime_types:     
        - 'image/jpeg'
        - 'image/png'
        - 'image/gif'
        - 'image/x-png'
        - 'image/pjpeg'  


and the IE didnt get it and threw the mime-error-message. But if I change the order to

    sfFileValidator:
      mime_types:     
        - 'image/jpeg'
        - 'image/png'
        - 'image/x-png'
        - 'image/pjpeg'
        - 'image/gif'  


everything works fine.

Maybe this is a stupid request, maybe I'm blind. But actually, its quiet amberrant! So I hope this will help some people out there!

Greets from Berlin
Previous Topic:WEBSERVICE / SOAP TUTORIAL
Next Topic:help: howto setup Symfony with nginx
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software