[wildfly-dev] Shall we limit size of the deployment in WildFly?

Jason T. Greene jason.greene at redhat.com
Wed Nov 4 07:29:09 EST 2015

> On Nov 4, 2015, at 4:36 AM, Heiko Braun <hbraun at redhat.com> wrote:
> GWT boils down to plain web technologies.  And no, AFAIKT there is no way to  check the size of an uploaded file across web browsers. Most browsers do however have an implicit limitation on the file size, which for majority is about 2 GB.

You can now that we have switched to XHR to do the upload. The File object returned from a file list has a size property that you can use.

So you could in theory check that there is available space before posting, however, since as Stuart mentions, browsers set a content length, the server knows it anyway so it's less racy checking at the server level, if one was to check.

>> On 04 Nov 2015, at 10:11, Darran Lofthouse <darran.lofthouse at jboss.com> wrote:
>> From within GWT is there any option to detect the file size before 
>> uploading?
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20151104/e5d96738/attachment.html 

More information about the wildfly-dev mailing list