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

Fix csv upload #13835

Merged
merged 1 commit into from
May 24, 2020
Merged

Fix csv upload #13835

merged 1 commit into from
May 24, 2020

Conversation

noellabo
Copy link
Contributor

Because the mime type of csv returned by the file command is changed, the upload of csv files fails. (It happens with newer distributions, such as Ubuntu 20.04.)

Fix it by adding application/csv to the corresponding mime type.

file -b -i following_accounts.csv

Before file-5.27

text/plain; charset=us-ascii

file-5.38

application/csv; charset=us-ascii

see: file/file@6b8e0e6

@shleeable
Copy link
Contributor

shleeable commented May 24, 2020

I caught this bug recently so thanks for the fix.
edit: tested and confirmed this fix.

@Gargron Gargron merged commit 8e056bd into mastodon:master May 24, 2020
@noellabo noellabo deleted the fix-csv-upload branch May 24, 2020 09:15
oyogetaiyakikun pushed a commit to oyogetaiyakikun/mastodon that referenced this pull request May 26, 2020
shouo1987 pushed a commit to CrossGate-Pawoo/mastodon that referenced this pull request Dec 7, 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

Successfully merging this pull request may close these issues.

3 participants