Files with a "%" in the file name cannot be resolved #2201
Replies: 1 comment
-
@FrazeColder Did you find a solution for this issue? We have the same encoding issue. The user uploads a file that contains <a href="{{ $media->getUrl() }}">Download</a> The browser can't access the file due to the escaping of the URL. Adding Another solution could be to use a custom https://spatie.be/docs/laravel-medialibrary/v11/advanced-usage/naming-files |
Beta Was this translation helpful? Give feedback.
-
Hi,
I found a bug. When uploading an image with an
%
in the file name e.g. "50% discount.jpg" the image cannot be resolved. This is due to a%
is a special char. The bug doesn't come from spatie media library itself but you guys could fix this bug by replacing all%
within filenames.I guess this would be a great add to prevent problems for other users!
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions