question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Problem in canceling file upload

See original GitHub issue

Environment

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

  1. Upload a large file
  2. Try to stop uploading before finishing (The uploading file will be deleted from the UI)
  3. But file continues to be uploading behind the scene, and finally it will be added to the list of uploads

image

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"
        }
    ]
}

error1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dsuresh-apcommented, Sep 28, 2021

This has been working. I believe it can be closed.

0reactions
wag110894commented, Nov 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found