Closed vkhramtsov closed 4 years ago
It never worked with .svg
https://gist.github.com/kunicmarko20/0af5e61510a68706ecbf658c0c690b8a this is how I did it last time I did it.
It is also does not work, with file also. Actually it is bug about handling non images uploads
@kunicmarko20 Moreover, it saves txt files without issues, but svg files only without extension. Sad but true. Would you be so kind to update your gist? Thank you in advance
@vkhramtsov My system stores XML-files without extension and produces HTTP-500 any idea?
@scasei Unfortunately no. We solved this issue by using adjusted code from gist. It looks like it needs some time for investigation and create PR for solving this issue
@vkhramtsov thank you for your feedback, my installation is based on symfony 4.2 and since the media module uses the extension guesser from http-foundation bundle, i updated to 4.4. Seems to work now, extension is now visible.
I cannot recheck this, but according to your comment, everything works now. I'm going to close this ticket
Hello
Environment
Sonata packages
Symfony packages
PHP version
Subject
I have error 500 when trying to upload svg using image provider in prod mod. In dev mod I see
\RuntimeException
with messageAn image could not be created from the given input
.Steps to reproduce
Install and configure sonata admin with media bundle and try to upload svg image (actually it is text, not image)
Expected results
Validation error
Actual results
Error 500
Trace
Additions:
[Zend Modules] Zend OPcache