Upload multiple files
Introduction to Uploading Multiple Files
Uploading multiple files within a single operation can significantly enhance user experience and streamline data management processes. To achieve this, the media-picker component or the open-media-picker action is utilized for file selection. Once selected, the execute-entities action is used to upload these files to the Dynamic Files database. By leveraging the $map operation within both the data and file properties, a separate record is created for each file, ensuring organized and efficient data storage. This approach facilitates efficient handling of bulk file uploads while maintaining data integrity.
Uploading multiple images using the media-field component
This example demonstrates a file upload form featuring a media-field component configured for multiple file selection and an entity-field for specifying filenames with extensions. It uses the execute-entities action to upload files to the Dynamic Files database. By utilizing the $map operation, each file is processed to create an individual record.

Uploading multiple images using the open-media-picker
This example demonstrates a file upload form featuring a open-media-picker action configured for multiple file selection and an entity-field for specifying filenames with extensions. It uses the execute-entities action to upload files to the Dynamic Files database. By utilizing the $map operation, each file is processed to create an individual record.

Last updated
Was this helpful?