Can't upload SVGs
I'm new at twill and i'm trying to upload svg at medial library, but i't doesn't work, after some seconds it shows this XHR returned response code 500.This is my code at twill config
'media_library' => [
'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg', 'webp'],
],
'glide' => [
'original_media_for_extensions' => ['svg'],
'default_params' => [
'fm' => 'webp',
'q' => '80',
'auto' => 'compress,format'
],
],
8 Replies
What's the error in the logs?
i don't have a log for this problem
A 500 error very likely has a log. Check the browser console/network as well
this is what i get at the console
I guess your file is small right? you're running into a timeout issue from the server
i tried different sizes and svg's and none of them get upload
i changed the timeout, i did it -1, and now they get uploaded but don't show
Hi @oxana
Is it just SVG's that you are having issues uploading any images? I am asking as I have just encountered a similar issue. I could upload fine, but the image would be broken.
For me, the issue was that the symlink from
/public/storage
-> /storage/app/public/uploads
was broken, so it was uploading fine, but it just couldn't show the image.
It may be worth checking this in your environment