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

Upload csv file from windows machine does not work #205

Open
Rita-C opened this issue Apr 4, 2022 · 0 comments
Open

Upload csv file from windows machine does not work #205

Rita-C opened this issue Apr 4, 2022 · 0 comments
Assignees

Comments

@Rita-C
Copy link
Contributor

Rita-C commented Apr 4, 2022

Steps to produce:
On a windows computer when using Firefox/MS Edge browsers:

  1. Login to lists.ala.org.au, click "upload a list" button
  2. Use option 1 - select a CSV file to upload, select a file then check data

Expected result:
File accepted

Actually result:
"Invalid file type" error displayed.

Users able to copy and paste data to proceed.
Issue requires code fix adding new ACCEPTED_CONTENT_TYPES - "application/vnd.ms-excel"
The problem is due to how the mime-type of a file is determined by the browser. Window passes 'application/vnd.ms-excel' as the file type for csv files. Chrome manages the file type however Firefox/MS Edge need it explicitly defined.

@Rita-C Rita-C self-assigned this May 17, 2022
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

No branches or pull requests

1 participant