https://groups.google.com/d/topic/web2py/WatEyE8UwDI/discussion
On Thursday, February 19, 2015 at 5:53:45 AM UTC-5, William Chen wrote: > > Hi all, > > *Background:* > I have created a file upload form where you can upload any file smaller > than 1MB. > > This is the db field for the file: > > Field('file1', 'upload', requires = IS_LENGTH(minsize=0, maxsize=1048576, > error_message='File is too huge.')), > > *Problem:* > When I try to upload a huge file larger than 1MB, Web2py freezes up for up > to 2 minutes, before finally returning to the form showing the > error_message that 'file is too huge'. I am unable to access any other part > of my application when web2py freezes. > > *Question:* > Is there any way to work around this problem? For example, is there anyway > to check the size of file before uploading it? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.