Open labuchholz opened 1 month ago
The default Manuscript in PDF
field profile only allows pdf files to be uploaded. This only occurs when a second field profile with Manuscript in PDF
and INPUT_FILE
are selected. Currently, the system is only configured to use the default Manuscript in PDF
field profile.
I think this bug report can be revised, then, to say that any field set in Manage Workflow with a "Manuscript in PDF" file type should not accept anything other than a PDF, or if it does, to not rename the extension.
We used a custom field in Manage Workflow for the 'upload your thesis as a pdf'; I don't remember why. So our system isn't using the default field profile.
Describe the bug When renaming files uploaded to a field with 'Manuscript in PDF' file type, the file extension also gets replaced, whether or not the file is a PDF. When the file is not a PDF, this causes confusion when admins download the file, try to open it in a PDF viewer, and get an error.
To Reproduce Steps to reproduce the behavior:
Expected behavior Rename only the base file name, leaving the extension as is. This would allow us to spot .doc files in List view, with the Manuscript in PDF column, and let us follow up with students. See https://github.com/TexasDigitalLibrary/Vireo/issues/1940 for ideal solution.
Additional context We do want the files to be renamed, so don't want to turn off the setting in application.yml