Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 1005 Bytes

2023-06-08-allow-import-of-encoded-url.md

File metadata and controls

18 lines (17 loc) · 1005 Bytes
title issue author author_email author_github
Allow uploading of url encoded media
NEXT-28428
Michael Köck
mkoeck@elektroshopkoeck.com
mkoeck

Core

  • Changed deserialize method of src/Core/Content/ImportExport/DataAbstractionLayer/Serializer/Entity/MediaSerializer.php to urldecode the filename before saving it to the destination key of the cacheMediaFiles

Upgrade Information

MediaSerializer

deserialize

The deserialize method of src/Core/Content/ImportExport/DataAbstractionLayer/Serializer/Entity/MediaSerializer.php was changed such that the filename will be urldecoded before saving it to the cacheMediaFiles. Previously, encoded url raised an error during validateFileNameDoesNotContainForbiddenCharacter when importing them, because they contained % signs. On the other hand, not encoding urls raised an "Invalid media url" exception.

This change allows importing medias with filenames that contain special characters by supplying an encoded url in the import file.