limiting size of uploaded files

3 views
Skip to first unread message

Devi

unread,
May 2, 2013, 12:09:56 PM5/2/13
to hasgeek-code
I was trying to put a limit for size of upload files in Imgee by setting MAX_CONTENT_LENGTH (as prescribed in [1]). It raises "413 Request Entity Too Large" when the file size exceeds the limit, as expected. Good so far.

Handling that exception would let go the error and give back response status to be 200, but the browsers complain "The connection to <host> was interrupted." or "The connection to the server was reset while the page was loading". I tried to dig deep to see what's happening but couldn't figure it out.

The code which reproduces it is at [2].


--
~Devi

Kiran Jonnalagadda

unread,
May 3, 2013, 1:42:10 AM5/3/13
to hasgee...@googlegroups.com
Devi, I suspect what's happening is the app aborts when the file exceeds size limits, without waiting for the upload to finish. For the browser, this means the connection was interrupted.

Kiran

-- 
Kiran Jonnalagadda

--
You received this message because you are subscribed to the Google Groups "HasGeek Code" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hasgeek-code...@googlegroups.com.
To post to this group, send email to hasgee...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages