<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>On Nov 4, 2015, at 4:36 AM, Heiko Braun &lt;<a href="mailto:hbraun@redhat.com">hbraun@redhat.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii">GWT boils down to plain web technologies. &nbsp;And no, AFAIKT there is&nbsp;<span style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgb(255, 255, 255);" class="">no way to &nbsp;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.</span></div></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><br><blockquote type="cite"><div><div class=""><font color="#222222" face="Helvetica Neue, Helvetica, Arial, sans-serif" class=""><span style="font-size: 15px; background-color: rgb(255, 255, 255);" class=""><br class=""></span></font><div><blockquote type="cite" class=""><div class="">On 04 Nov 2015, at 10:11, Darran Lofthouse &lt;<a href="mailto:darran.lofthouse@jboss.com" class="">darran.lofthouse@jboss.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">From within GWT is there any option to detect the file size before<span class="Apple-converted-space">&nbsp;</span></span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">uploading?</span></div></blockquote></div><br class=""></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>wildfly-dev mailing list</span><br><span><a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></span></div></blockquote></body></html>