Skip to content

[GOOD FIRST ISSUE] Improve error messages for invalid file types #1

Description

@kiku-jw

Description

Currently, when users try to upload unsupported file types, the error message could be more helpful.

Task

Improve error handling in docs/assets/app.js to show clearer messages when:

  • File type is not supported
  • File is corrupted
  • File is too large

Files to Modify

  • docs/assets/app.js - Add better error messages
  • docs/index.html - Update UI to display errors clearly

Acceptance Criteria

  • Clear error message for unsupported file types
  • Error message shows which file types are supported
  • Error message is user-friendly (not technical jargon)
  • Errors are visually distinct (e.g., red background)

Tips

  • Look at the processFiles method in app.js
  • Check existing error handling patterns
  • Test with various file types (.pdf, .xlsx, .jpg, etc.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions