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

Set mime type of non-images when creating resources from API #10653

Open
laurent22 opened this issue Jun 24, 2024 · 0 comments
Open

Set mime type of non-images when creating resources from API #10653

laurent22 opened this issue Jun 24, 2024 · 0 comments
Labels
bug It's a bug desktop All desktop platforms high High priority issues

Comments

@laurent22
Copy link
Owner

laurent22 commented Jun 24, 2024

Currently, when calling POST /resources, only the mime type of images is automatically detected. PDF for example are not detected, unless they end with the ".pdf" extension.

We should investigate whether we can automatically detect the mime type based on the file signature (there's probably an npm package for this). If the imported package is not too large that would be the preferred solution.

@laurent22 laurent22 added bug It's a bug desktop All desktop platforms high High priority issues labels Jun 24, 2024
@laurent22 laurent22 changed the title set mime type of non-images when creating resources from API Set mime type of non-images when creating resources from API Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues
Projects
None yet
Development

No branches or pull requests

1 participant