A web browser won't allow you to do this, since it would basically allow anyone to pull copies of important files off your hard disk without your permission, this a FileUpload (like <input type="file">) is a readonly structure from a JavaScript point of view.
You can however use flash, or a signed Java Applet to access the file-system and upload the file. Mogoye wrote: > Hello, > > I need to upload a file to my server. Looking to GWT API the only way > to do that seems to use > FileUpload class associated with a FormPanel. > > My problem is that I already know the name of the file to upload and > don't want to ask to my user > to select it on the file system. > My 1th idea was to call myFileUpload.setFileName("xxxx"); but this > method does not exist. > > Is there any other solution to upload a file ? > > Thx for reading. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---