Skip to content

Find file mime type#203

Merged
seanadkinson merged 3 commits into
masterfrom
unknown repository
Nov 4, 2020
Merged

Find file mime type#203
seanadkinson merged 3 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented May 13, 2019

Copy link
Copy Markdown

Problem with mime type.

The package is using mime-type from file.type variable. But Windows machines browsers don't have it for .csv format (source).
Therefore, Content-Type for a PUT request was empty if I choose .csv files on windows. And it was throwing the error: XHR error (net::ERR_CONNECTION_RESET).

I added mime-types package and a few changes.

@ghost ghost changed the title Find file mime type if file.type is empty Find file mime type May 14, 2019
@ghost

ghost commented Oct 12, 2020

Copy link
Copy Markdown
Author

@jjno91 Could you take a look, please?

Comment thread s3upload.js Outdated
@seanadkinson seanadkinson merged commit ac2780b into odysseyscience:master Nov 4, 2020
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