Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX 24.2.5 - Image Upload Cropping Broken (Uncaught TypeError: Cannot read properties of undefined)

Ahmed ElgamalMay 30 2025

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:

  1. Add an "Image Upload" page item.
  2. Enable cropping options.
  3. Run the page and attempt to upload and crop an image.
  4. 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.

This post has been answered by Ahmed Elgamal on May 30 2025
Jump to Answer
Comments
Post Details
Added on May 30 2025
1 comment
163 views