| sfFileValidator [message #43633] |
Thu, 17 January 2008 23:13 |
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
|
|
|