I have a folder with many images which I would like to put into a data table at once. Is there a way to upload these images at once? If there is not a way with data tables, is there a different feature which would allow me to use all of these images with only 1 upload?
You can accept multiple files for upload, by using the multiple property of the FileLoader component! You’ll then get a list of media object as self.file_loader_1.files, which you can loop over and upload one by one, by passing them to a Server Function. (@stefano.menci is right – you’ll want to make a separate server call for each to avoid timeouts.)
Here’s a simple example app that uploads multiple files, and shows progress:
I tried doing something like this to store a list of images into a data table (e.g., a user in my user table might have many pictures associated with them), but it looks like a single cell of a Media column can only contain a single image. I am assuming I will need a separate table just for images and link it to my user table.