Hi everybody.

At the beginning I thought this was a bug (Why files above 2MB where being
the cause to the framework throwing that kind exception?)

The MaxSize constraint is working properly when files are in range (the
constraint itself and a size less than the upload_max_filezise property on
php.ini).

I'm pretty sure that FileNotFoundException is being trhown correctly, but I
would like to suggest to give a better (if this is the right word) approach
when handling file uploads.

For example, if the File exception is thrown within the FF, then assume that
the max file size allowed in php.ini was reached
(this might be risky, but this is just a humble suggestion).

Handling this issue like that, could enable the MaxSize validation
constraint to be triggered, therefore show to the end user an error message;
otherwise you/I/everybody would have to handle the exception manually.


Regards!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to