When the user uploads a single file we will be retrieving the file as follows
play.mvc.Controller.request().body().asMultipartFormData().getFiles().get(0)
When the user selects and uploads multiple files we will be retrieving the multiple files as follows and process one by one
play.mvc.Controller.request().body().asMultipartFormData().getFiles()
Now we need to allow the user to upload a folder which will have files, sub-folder and sub-folder may contain multiple files or folders. We need to process them all.
Example, in FileZilla an user can upload an entire folder and the folder, sub-folder, sub-folder and all files will be uploaded to the server.
Need help on the following
- How to provide an option to user to upload a folder?
- Which Play API is used to process folder and sub-folder and files recursively in Play framework?
- Does folder upload supported by all browsers?
- Do we have any utility in play for accept bulk upload or folder upload from the client?
Currently we are using anjular 1.0 and need help on the above
Thanks.