Hello Oracle APEX Wonderful People,
After updating to APEX 24.2.5, we've encountered an issue with the image cropping feature in the Image Upload page item. The cropping functionality no longer works as expected, and we are seeing the following JavaScript error in the browser console:

⩥ Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setAttribute')
at #v (item.FileUpload.min.js?v=24.2.5:4:10636)
at HTMLDivElement.close (item.FileUpload.min.js?v=24.2.5:4:16322)
at t.<computed>.<computed>._trigger (desktop_all.min.js?v=24.2.5:41:9638)
...
This occurs immediately after selecting and attempting to crop an image. It appears to be a regression in the APEX core JavaScript for the File Upload item. The same functionality was working correctly in prior versions (e.g., 24.1).
Reproduction Steps:
- Add an "Image Upload" page item.
- Enable cropping options.
- Run the page and attempt to upload and crop an image.
- Observe that the cropping interface does not work, and the error above appears in the console.
Environment:
- Oracle APEX version: 24.2.5
- Database: Oracle Autonomous / Oracle Cloud Free Tier
- Browsers tested: Chrome, Firefox (latest)
- Devices: Both desktop and mobile
Temporary Workaround:
Disabling cropping on the image upload item avoids the issue, but cropping is a necessary feature in our use case.
We would appreciate any guidance, confirmation if this is a known bug, and whether a patch is planned.