开发者

html file upload:Can we detect that browser did not send request for file larger than 2GB (IE / FF)?

I know that IE & FF don't support file uploads larger than 2 GB. But can we somehow get to know that browser did not开发者_运维问答 send request for a file larger than 2 GB? I am using GWT upload panel. When we attach a file larger than 2 GB and submit the form,IE fires onSubmitComplete even but event.getResults() is null. event.getResults() is also null when internet disconnects. Firefox does on even fire this event.

Is it possible to detect (at client side via some event or error) that upload has failed due to size limit?

Regards, Nadeem Ullah


Why don't you check the file size before trying to upload it? If it's greater than 2GB, send a warning to the user ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜