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

Chunked upload fails to validate upload of some mimetypes because blob.type is empty. #3669

Open
alexsilva opened this issue Aug 23, 2024 · 0 comments

Comments

@alexsilva
Copy link

Describe the bug
Chunked upload fails to validate upload of some mimetypes because blob.type is empty #L7032.

The file in question is the DebianGNULinux_1-1-3-0_x64.Appx com o mimetype application/zip

Even without knowing the mimetype, sending occurs normally but the backend and client are configured to deny the application mimetype.

The backend validates the file and returns an error message {'error': "mesage"}

To Reproduce
Steps to reproduce the behavior:

  1. configure uploadDeny with application.
  2. upload the mentioned file
  3. the backend must perform the validation and return an error message
  4. See error

Expected behavior
When returning an error message the client should cancel the operation of uploading a file in chunks.

Screenshots
The upload remains in an indeterminate state and does not send or complete the operation.
image

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [firefox]
  • Version [129.0.2]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant