On 22 août, 08:41, Rishi <[email protected]> wrote:
> i am new to GWT, i am creating a file upload web application, could
> you suggest me how i can customize the browse window, i want to show
> only specific file formats(type) to upload.
HTML defines an accept="" attribute where you'd list the media types
acceted by the server:
http://www.w3.org/TR/html4/interact/forms.html#adef-accept
Most (if not all?) browsers ignore that attribute however, so there's
no real reason for GWT to give easy access to it in the FileUpload
widget...
You can still try fileUpload.getElement().<InputElement>cast
().setAccept("image/jpeg, image/png,image/gif") and see what
happens...
Your only other option is to use a plug-in: applet, Flash,
Sliverlight, BrowserPlus, Google Gears...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---