On May 5, 3:23 pm, Guilherme Mussi <[email protected]> wrote: > Yes, you are right. Both use flash for the upload (You can right-click on > "Attach a file" to check that). > Unfortunately, native browser support for uploading files is not as flexible > as one would like.
But it's getting better! HTML5 defines a new .files property for <input type=file> that gives you the file's name, size (in bytes) and content-type (as the browser would send it on the wire in the multipart/form-data). This is already implemented in Chrome 5 (beta and dev channels) and Firefox 3.0+ http://www.w3.org/TR/html5/forms.html#dom-input-files And there's the FileAPI that's already implemented in Firefox 3.6 and gives you access to the files' *content* http://www.w3.org/TR/FileAPI/ > If you are unable to use flash, i would recommend your servlet which will > receive the file to trown a exception or validation error (depending on your > implementation) when the bytes of the stream reached the maximum size. Whether you can use Flash (or BrowserPlus, or HTML5, or Silverlight, etc. [1]) or not, you should do that anyway. [1] http://www.plupload.com anyone willing to port it (or at least wrap it) to GWT? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
