I've had a single upload JS/B4J WebSocket implementation that I modded (because of this question) to handle multiple-file upload. In my case, I'm only dealing with a very simple form that has just the upload functionality (I'm not capturing any other input) and therefore this may not be the right direction for you (also I noticed your thread
Async XMLHttpRequest & Multiple File Upload, which indicates you may have found your own solution). I've tried document the code with the links of the various sources I used for the implementation. I'm neither a B4J nor JS expert (really, just a beginner), so any input/critiques are welcome. In this post (
https://www.b4x.com/android/forum/t...-use-setmaxtextmessagesize.45644/#post-281127),
@Erel does mention that WebSockets may not be the best way for handling file uploads.
PS: In order to access the upload button, use the following URL after running the app
http://localhost:51060/scanner2.html
Please ignore any weird naming conventions, since this code is ripped out of an ongoing project.