I have an image uploader that after the image is uploaded it is processed. The uploading and processing can take more than 5 seconds on a slow connection. I added a way for the user to abort the upload using xhr.abort()
.
The problem I have is once the upload is aborted my pyramid application will continue to process the image, save it to disk, and add the record to the database.
Is there a way for my view to know that the user called xhr.abort()
so I can clean up.