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

File upload stays pending for unacceptable file extensions (localhost and dev.podkrepi.bg) #668

Open
gparlakov opened this issue Sep 4, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@gparlakov
Copy link
Contributor

Which area(s) of Podkrepi.bg are affected? (leave empty if unsure)

Storage

Describe the Bug

When uploading a file that is not acceptable (function validateFileType() from files.ts deems it so and calls the cb) the request remains pending forever

To Reproduce

  1. Visit /admin/campaigns/create
  2. Fill in form
  3. Add a .exe file for the files
  4. See 'pending' status* after submit

*requests tab in dev tools

Expected file returns a 4xx error
image

Expected Behavior

Expected unacceptable file request returns a 4xx error

Which browser are you using? (if relevant)

Edge Version 128.0.2739.54 (Official build) (64-bit) (also tested with chrome - same effect )

@gparlakov gparlakov added the type: bug Something isn't working label Sep 4, 2024
@gparlakov
Copy link
Contributor Author

gparlakov commented Sep 4, 2024

Notes:

@sashko9807
Copy link
Member

Unable to reproduce on my end. The server responds with 500(though we can improve the respond to be 4xx).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants