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

User is informed their metadata upload has failed #76

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

garethfoote
Copy link
Collaborator

@garethfoote garethfoote commented Mar 5, 2024

Fail type 1: Selected a file other than a CSV

The input[type=file] element has an 'accept' param in which you can specify a mime type ("text/csv") and this prevents anything other than a CSV from being selected. This may negate the need for an extension check using JS and therefore an error on the upload page itself.

Fail type 2: After CSV has been uploaded - Virus or checksum

After the file has hit the server and we've found a virus or a checksum error. A page shows whilst the server-side processing happens and when prompted the user navigates to a results page with fail information.

@garethfoote garethfoote temporarily deployed to tdr-prototype-pr-76 March 5, 2024 15:39 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant