I have created a drag and drop html5 Rich UI component to upload files to a servlet on Websphere.
The servlet then calls a web service to add a record in the database (file id, description fields, upload date, ...) and stores the file on the filesystem.
It returns the id of the file added to the database so the rich ui handler can take action on the file if needed.
We chose not to allow the users to access the files directly, so there is a second servlet to return the file by the file id if neccssary.
The widget has some other features like a progress bar, dropping multiple files and image preview (if an image is dropped of course).
It is not that easy to set up, but when it's done it is realy easy to use in rich ui applications.
It has been a great step forward for us to be able to store unstructured data in our ERP software. (images, documents, cad drawings, ...). This along with the user interface were the main selling point for migrating from our aging RPG3 code to EGL.
I can provide further details and code examples if you are interested.
Kind regards.
Bram_Callewaert