Skip to content

[Bug]: Raw API response displayed when user uploads unsupported/corrupted or empty file instead of user-friendly error #58

@Harshjeetsinh-Jadeja

Description

@Harshjeetsinh-Jadeja

Expected Behavior?

For unsupported files:
This file type is not supported. Please upload a valid format.
For blank files:
The uploaded file is empty. Please choose a file with content.

Current Behavior

When I tried to upload file which is not in supported format or blank, error was displayed with the 404 and 400 response

Screenshots

Image Image

Additional information

Steps to reproduce:

  1. Go to create quiz
  2. Select image file in the file upload section or blank file
  3. Click on create quiz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions