JS-FileUploader v. 2 Demo
GitHub

Uncompleted uploads demo

To avoid that users could submit your forms before uploads are completed, you can set the disable_submit option to true to disable the submit button until the upload is complete.

For more control, you can set up a little script as described in Recipes: Checking for completed loading in the README page, or use the src-utilities/check_uncompleted_uploads.js script to quickly add a check function. The script is also located in the dist/utilities folder as ESM and UMD.

To test the script, submit the form before the image is completely uploaded. Take care to use a very big file, that the disable_submit option is set to false (the default) and simulate a really slow connection using your devTool throttling options.

Back to demo index

Take a look at the "About the demo" section in the README file for info about the following code boxes.

Back to demo index