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

Uploading svg file using the image field shows an unsupported media type #22461

Open
robinsonjohn opened this issue May 10, 2024 · 2 comments
Open

Comments

@robinsonjohn
Copy link

Describe the Bug

When uploading or displaying an already uploaded .svg file (may occur with other file types, I only tested with .svg) from the image field, an "unsupported media type" error is shown.

When uploading, the POST request to /files returns a 200 status code and does, in fact, upload correctly.

There seems to be no issue when uploading an .svg file directly from the file library.

This bug may have been introduced in #22307.

Screenshot 2024-05-10 at 9 05 27 AM

To Reproduce

Upload an .svg image using the "image" field.

Directus Version

v10.11.0

Hosting Strategy

Self-Hosted (Docker Image)

@steveHimself1397
Copy link

Can confirm. I have the same issue in directus 10.11.0 running in a docker compose project. File is properly uploaded and available via the api but in the backend UI it displays the image error as mentioned by OP

@hanneskuettner
Copy link
Contributor

It is indeed just a visual bug that is being addressed in an upcoming PR ✌️

@paescuj paescuj self-assigned this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants