Re: Decision for ticket #14787

2014-07-10 Thread anubhav joshi
On Thursday, July 10, 2014 9:39:09 PM UTC+5:30, Tim Graham wrote: > > It could be useful, however, I think many projects would also want to have > some way of configuring the max file upload size without having to specify > it on every FileField. One way to achieve this might be if a a custom fil

Re: Decision for ticket #14787

2014-07-10 Thread Tim Graham
It could be useful, however, I think many projects would also want to have some way of configuring the max file upload size without having to specify it on every FileField. One way to achieve this might be if a a custom file upload handler could raise an exception that would be presented as a fo

Re: Decision for ticket #14787

2014-07-10 Thread anubhav joshi
Do we have a decision here whether or not to include an option `max_size` on FileField in core? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-deve

Re: Decision for ticket #14787

2014-07-07 Thread anubhav joshi
As per the suggestion on the ticket, I would like to tell my ideas in a better way. - Add a new attribute *max_size* to FileField and add a check in *to_python()* like the others. Reasons: Easy way to limit the size of file-uploads. No need to search for third party implementations o

Decision for ticket #14787

2014-07-07 Thread anubhav joshi
#14787 The ticket says to handle more errors on *FileField*. The idea it suggests is by propagating errors from uploadhandler to forms. Recently I took to solving the issue. If we look in files/uploadhandler.py