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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Audio files are returned as text/plain in view mode #2233

Closed
2 tasks done
JohannesKlauss opened this issue Oct 16, 2021 · 0 comments 路 Fixed by #2239
Closed
2 tasks done

馃悰 Bug Report: Audio files are returned as text/plain in view mode #2233

JohannesKlauss opened this issue Oct 16, 2021 · 0 comments 路 Fixed by #2239
Assignees
Labels
bug Something isn't working

Comments

@JohannesKlauss
Copy link

馃憻 Reproduction steps

Upload a png image file to Appwrite storage and then open the view link. The response header has the content-type image/png.

If you upload a mp3 file and open the view link the content-type is set to text/plain. This causes problems in Chrome with the new CORB policy (https://www.chromestatus.com/feature/5629709824032768). Basically the serving of the file is blocked by Chrome.

馃憤 Expected behavior

The content-type should be set to the corresponding mimeType which is saved in the storage object, in this case audio/mpeg.

馃憥 Actual Behavior

The content-type is set to text/plain.

馃幉 Appwrite version

Version 0.10.x

馃捇 Operating system

MacOS

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@JohannesKlauss JohannesKlauss added the bug Something isn't working label Oct 16, 2021
@eldadfux eldadfux self-assigned this Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants