Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileUpload: The user cannot really abort uploading files #5652

Open
forNoor opened this issue Apr 27, 2024 · 0 comments
Open

FileUpload: The user cannot really abort uploading files #5652

forNoor opened this issue Apr 27, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@forNoor
Copy link

forNoor commented Apr 27, 2024

Describe the bug

Hi, thanks for the FileUpload Component.
If the user wants to upload large files, you fill formData for all the files and use the XMLHttpRequest send function to post data files to the server.
If the user wants to cancel, they can only remove an item, but they cannot cancel the file posting process to the server.
I think you must do two things to complete the component's functionality.
First, you must use a separate XMLHttpRequest for each file, not one for all files.
Second, when the user cancels the uploading process, the corresponding XMLHttpRequest should be aborted.
In this scenario, the progress of uploading each file could be different from others.

Reproducer

https

PrimeVue version

3.52

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. select multiple large files
  2. press upload files
  3. clear uploads.

in this case, the list is cleared but posting files continues. and user can not abort one uploading process.

Expected behavior

No response

@forNoor forNoor added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 27, 2024
@forNoor forNoor changed the title FileUpload: The user can not abort uploading files really FileUpload: The user cannot really abort uploading files Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant