[BUG] Problem in canceling file upload
See original GitHub issueEnvironment
Please provide as many details as you can:
- Hosting type
- Form.io
- Local deployment
- Formio.js version: 4.10.0-rc.2
- Frontend framework: Javascript
- Browser: Chrome
- Browser version: 83
Steps to Reproduce
- Upload a large file
- Try to stop uploading before finishing (The uploading file will be deleted from the UI)
- But file continues to be uploading behind the scene, and finally it will be added to the list of uploads
Expected behavior
The file should not be uploaded to the server and displayed in the UI.
Example
The definition of form is as follows:
{
"display": "form",
"components": [
{
"label": "Upload File",
"storage": "url",
"dir": "target/folder",
"fileNameTemplate": "{{guid}}",
"filePattern": "*",
"fileMinSize": "0KB",
"fileMaxSize": "1GB",
"multiple": false,
"type": "file",
"url": "/path/to/upload",
"input": true,
"key": "uploadFile",
"id": "eventfq"
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
cancel file upload not working very well in Internet Explorer
My question is that what in my code is causing the problem in internet explorer that it continues file uploading even though I...
Read more >2508 - cancel button in upload file dialog removes previously ...
Issue 2508: cancel button in upload file dialog removes previously choosen file · 1. go to http://validator.w3.org/#validate_by_upload+with_options · 2. click ...
Read more >Cancelling a large upload not working - Forum - WinSCP
Cancelling a large upload does not really work. Try to upload a file that takes longer than 20 seconds, and try to cancel...
Read more >431098 - Impossible to clear file upload controls (fields)
Reproducible: Always Steps to Reproduce: 1. Fill out form, pick file to upload 2. Change your mind, try to clear the file upload...
Read more >FileUpload error on cancel file - Prime Community Forum
When you cancel file during upload, you can see error in js console browser, the file and progress bar dissapear visualy but upload...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been working. I believe it can be closed.
Hello @dsuresh-ap,
Our CTO has provided that this will be added to our next major build, which will be the 4.13 build. We will let you know once this PR has been approved and what version of 4.13 it will be added to.