Active
Project:
Drupal core
Version:
main
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2023 at 20:07 UTC
Updated:
10 Jun 2023 at 20:18 UTC
Jump to comment: Most recent
When using media library and uploading a file (tested with jpeg and docx) with an illegal character in the filename, in this test a "/" (forward slash), an upload error is produced
The specified file FILENAME.jpeg could not be uploaded.
This value should be of the correct primitive type.
.
The file name listed in the error message shows a ":" (Colon) not a "/" (forward slash). My assumption is upload handler code or media code is improperly sanitizing the filename.
Vanilla install, create a media file field, create a jpeg or docx file with a "/" (forward slash) in the title, try and upload that file. view the renamed filename in the error message as having a colon.
change the sanatizing code to turn a "/" (forward slash) into a "-" (Dash) instead of a ":" (Colon).
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2023-06-10 at 1.06.50 PM.png | 16.3 KB | destinationsound | |
| Screen Shot 2023-06-10 at 1.07.14 PM.png | 69.73 KB | destinationsound |
Comments
Comment #2
destinationsound commented