I use Apache Commons FileUpload in a java server-side app that has a html form with fields :
- A destination fied that will be filled with email address of the destination mailbox
- A message text with a message of the sender
- A < input type=file ... field for uploading a photo. I can receive uploaded file (as a stream) but how
This app I want to upload on GAE .
I can receive uploaded file (as a stream , using org.apache.commons.fileupload.FileItemStream
).
I want to receive too input textfields (i.e. 1) and 2)) - completed by the user of app)
I want to access these using org.apache.commons.fileupload.FileItem
but I receive java.rmi.server.UID is a restricted class
You should use the FileItemIterator of the Apache Commons FileUpload.
Take a look at this: Google App Engine and FileUpload
You can't write directly to the filesystem in GAE, but take a look at GAEVFS, which uses the datastore and memcache to emulate a filesystem.