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
ifox
ifox6mo ago
What's the error in the logs?
oxana
oxanaOP6mo ago
i don't have a log for this problem
ifox
ifox6mo ago
A 500 error very likely has a log. Check the browser console/network as well
oxana
oxanaOP6mo ago
this is what i get at the console
No description
ifox
ifox6mo ago
I guess your file is small right? you're running into a timeout issue from the server
oxana
oxanaOP6mo ago
i tried different sizes and svg's and none of them get upload
oxana
oxanaOP6mo ago
i changed the timeout, i did it -1, and now they get uploaded but don't show
No description
Tom M
Tom M6mo ago
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
Want results from more Discord servers?
Add your server