Unsuccessful cancellation of Parse File
Issue Description
I was trying to cancel an a PFile when I noticed in my network that it successfully cancelled the PFile but created another request to continue saving the file. I tried checking who called it the second time and to my surprise, it went another attempt to save the file because of this.
Steps to reproduce
- Create a ParseFile using JS SDK
- Save it
- Create a setTimeout to mimic interruption after 2s
- Cancel it
Expected Results
Cancel the file
Actual Outcome
Cancel the first request, then shortly after created another request to continue the previous one.
Test Case
I don't know how will I be able to reproduce this one on a test
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 4.2.0
- Operating System: Ubuntu 18.04
- Hardware:
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
-
JS SDK
- JS SDK version: 2.13.0
- Application? (Browser, Node, React-Native, etc): Browser
Logs/Trace

That's an interesting one! I assume this affects all requests to parse server since its the RESTController, not only Parse.File requests?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@JeromeDeLeon Hello, did you figure out how to cancel a file upload? Because I have the same problem after canceling, the Parse tries to upload the file 4 more times (if you cancel each one).
@baradatbiu Unfortunately no and I'm not even sure if it was fix now since I haven't used this lib in a long time.
I'll reopen this as the issue still seems to be exist as indicated by @baradatbiu's comment. This as been closed by the stale bot which has since been disabled.