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!

Using substitution strings in file upload properties

Scott WesleyMay 19 2025 — edited May 19 2025

While using APEX 20.2, I was able to dynamically set the Maximum File Size for a ‘File Upload’ item using

&P5_MAX_FILESIZE.

https://forums.oracle.com/ords/apexds/post/file-browse-granularity-of-maximum-file-size-6631

We've since upgraded to 23.2 and I am no longer able to enter alpha characters or decimals into this field (though values like “&” can be typed).

The same goes for Maximum File Size property for Resize To in ‘Image Upload’ items, and the max height/width, but not the File Types property on ‘File Upload’ items.

While I can paste the string into the property, the page builder does not validate it

Though I can see the substitution is still honoured (max-file-size)

<a-file-upload id="P5_FILE" upload-type="FILE" display-style="DROPZONE_INLINE" size="30" label="Drag and Drop" description="Select a file or drop one here." max-file-size="1855.46875" download-link="true"><input type="file" class="apex-item-file u-vh" id="P5_FILE_input" aria-labelledby="P5_FILE_LABEL" name="P5_FILE">...

I can see this restriction also applies in 24.2.

Is this intentional?

Is there another (supported) method of applying these restrictions dynamically?

Scott

Comments
Post Details
Added on May 19 2025
2 comments
147 views