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

File type != MIME-Type problem #214

Open
tmberthold opened this issue Jul 11, 2022 · 0 comments
Open

File type != MIME-Type problem #214

tmberthold opened this issue Jul 11, 2022 · 0 comments

Comments

@tmberthold
Copy link
Contributor

tmberthold commented Jul 11, 2022

If a file is uploaded or referenced as an external file, the user has the option to specify the file type in a text field, or it will be pre-filled automatically.

Problem:
This file type information is also used as MIME type.

Would work if the user set the file type manually to the appropriate MIME type, e.g. for a xyz.xml-file instead of the autmatically filled xml he has to enter/the UI has to prefill application/xml. Then a file with the extension .xml will be downloaded instead of a stream and interpreted as such xml-file.


Not working, data will be received as stream (automatically set):
image
Causes follwing DSC-log:
Could not resolve media type. Return data as stream. [exception=(Invalid mime type "xml": does not contain '/')]


Working (manually edited field content by me):
image

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

No branches or pull requests

1 participant