Error handling in large uploads to Express using Formidable and AJAX #916
Unanswered
MatthewCole-PDX
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a private server and web application for uploading movies and playing them. Unfortunately, uploads often interupt and fail. The console log shows the upload is to be terminated, but progress continues until the end where it reaches 100%, but never completes. I would like it to either stop the upload in the event of a network interruption, or better yet, gracefully catch the error and continue such that the upload completes correctly. I am using formidable, a nodejs library in an express framework with Ajax on the front end to display a progress bar. Here is my code:
And on the front end in AJAX:
Beta Was this translation helpful? Give feedback.
All reactions