MetaCell / MetaCell/NetPyNE-UI

Upload Dialog - Show error message if extensions is not allowed

Open
#345 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
23
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Currently, you can select a file with a non-supported extension and submit upload.
It is treated identically to an allowed extensions with the difference that it won't be uploaded by the backend.

`UploadDownloadFile` needs to incorporate a check and display an error message in the dialog if extension is not supported. User shouldn't be able to submit upload with invalid extension.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the UploadDownloadFile component and inspect how selected-file extensions are handled before submission. Reproduce the upload with an unsupported extension, then add the dialog error and prevent submission for invalid extensions. Confirm that supported extensions still upload normally and unsupported ones are rejected in the UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.