I’m writing a program that will be hosted on GAE that can upload and process local files. The program needs to process the file on the server side, and then return it to the client side. Previously I used JFileChooser for that purpose, but found out that it’s not supported in GAE. I did some research and found FileUpload class, but it seems like it can’t return the data to the client side. I could just let the user type the path of the file, but that would be just bad usability.
Any ideas are appreciated! Thanks.
GAE may not support
JFileChooserdirectly, but it is apparently possible to embed applets.Since that is the case:
JFileChooser.FileContentsobject by way of theFileOpenService. Here is a small demo. of the file services of the API.