- Issue created by @fmitchell
- @fmitchell opened merge request.
- Status changed to Fixed
over 1 year ago 12:58pm 9 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
The pdf_metadata module does not properly handle file names containing special characters and spaces when applied to a file within a media type. This limitation causes errors and prevents the module from functioning correctly in situations where documents need to include such characters or spaces in their names.
1. Create a media that has the "Enable PDF Metadata?" option enabled for the file.
2. Upload a file containing spaces or special characters in its name.
3. Save the media.
4. Observe the errors generated when trying to save the media type.
Encode the file URL using PHP's rawurlencode() function to convert special characters, such as spaces, into their encoded representation (e.g., "%20" for spaces).
$encodedFileUri = rawurlencode($file['file']->getFileUri());
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.