My application uploads a file at a time, but I make it work sort of like a multiple upload.
My upload widget is inside a composite. Once a file uploads, the FileUpload is hidden, replaced by a checkbox with the name of the file uploaded, and a new FileUpload widget is added to the UI. The use can upload more files, one at a time. If a file name is unchecked, the user is saying, "ignore this". On the server side, I track the name of the files and the location of the temporary files. When the user finishes with the form, I send the checked file names to the server with other data as a JSON string. The list of checked files is compared with the temporary files, and those listed are check into my system. Other files are deleted. On Aug 27, 3:19 pm, huy <[email protected]> wrote: > Is it possible to upload multiple files at one time? FileUpload will > only allow selection of one file so I'm not sure how to do this. Any > suggestions would be helpful. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
