Enable Client-Side Linking Between File Browse Items
Problem
Many applications need to store or process multiple versions of the same uploaded file. For example, an original image is often accompanied by a web-optimized version and a thumbnail image.
Currently, Oracle APEX does not provide a declarative way for a single file selection to be propagated to multiple File Browse items.
As a result, developers are forced to implement custom JavaScript solutions that copy the selected file from one File Browse item to other File Browse items. These solutions require additional development, testing, and maintenance effort for each application.
A concrete workaround currently used to achieve this functionality is shown at the end of this post.
Proposed Enhancement
Introduce a declarative mechanism that enables client-side linking between File Browse items.
One File Browse item could be linked to one or more additional File Browse items using a new Linked To Item property.
When a user selects a file in a File Browse item, Oracle APEX would automatically assign the same file to all linked File Browse items.
Example
P1_FILE_UPLOAD
├── P1_FILE_ORIGINAL
├── P1_IMAGE_WEB
└── P1_IMAGE_THUMBNAIL
The user selects a file only once in P1_FILE_UPLOAD.
Oracle APEX automatically propagates the same file to all linked File Browse items.
Each linked item remains fully independent and can apply its own configuration and processing rules.
Example Configuration
File Selection Item
P1_FILE_UPLOAD
Linked Items
P1_FILE_ORIGINAL
Linked To Item = P1_FILE_UPLOAD
P1_IMAGE_WEB
Linked To Item = P1_FILE_UPLOAD
P1_IMAGE_THUMBNAIL
Linked To Item = P1_FILE_UPLOAD
Individual Processing Configuration
P1_FILE_ORIGINAL
Store original file
P1_IMAGE_WEB
Maximum Width = 1920
Compression = 80%
P1_IMAGE_THUMBNAIL
Maximum Width = 300
Compression = 70%
In this example, the user performs only a single file selection operation, while Oracle APEX automatically makes the same source file available to all linked items.
Benefits
Improved User Experience
The user only needs to select a file once, regardless of how many processing or storage workflows require it.
Declarative Solution Instead of Custom JavaScript
Developers could configure the relationship directly within Oracle APEX without implementing client-side file synchronization logic.
Reduced Maintenance Effort
Application-specific JavaScript solutions would no longer be required, reducing both development and maintenance costs.
Flexible Architecture
The feature would not be limited to image-processing scenarios. Any File Browse item could participate in such a relationship.
Possible use cases include:
- Original and optimized image storage
- Multiple image sizes
- Different compression levels
- Document-processing workflows
- OCR-processing workflows
- Watermarked versions of files
- Future AI-based processing pipelines
Reuse of Existing Functionality
The proposal would not introduce any new file-processing mechanism.
Linked items would continue to use their existing native attributes, processing options, and server-side processes. The enhancement would simply allow the same selected file to be made available to multiple File Browse items.
Proposed New Property
For all File Browse items:
Linked To Item
Example:
P1_IMAGE_WEB
Linked To Item = P1_FILE_UPLOAD
P1_IMAGE_THUMBNAIL
Linked To Item = P1_FILE_UPLOAD
When configured, linked items automatically receive the same selected file as the referenced File Browse item.