- Issue created by @destinationsound
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).
Active
9.5
Last updated