Skip to content

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

@gparlakov

Description

@gparlakov

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions