Issue with IsPDFObject() after upgrading ColdFusion 2023 from Update 10 to Update 12
Hi Experts,
We recently upgraded our ColdFusion 2023 environment from Update 10 to Update 12. After the upgrade, we encountered an issue in one of our applications that handles PDF uploads and validation.
Previously, we used the IsPDFObject(mytempPDFObj) function to validate uploaded PDF files, and it worked as expected. However, after the upgrade, this function consistently returns NO, even though the uploaded files are valid PDFs and were working fine before the update.
We confirmed that:
- The uploaded files have the correct .pdf extension.
- The same files were successfully validated before the upgrade.
- mytempPDFObj is being populated correctly but appears to be a struct always, not a PDF object.
Has anyone else experienced this issue after Update 12? Is there a change in how ColdFusion handles PDF objects or MIME validation in this update?
Any insights or workarounds would be greatly appreciated.
Thanks in advance!
