I wonder if i can use :
instance.file_import(
file_path TEXT,
attribute_id UUID,
record_id BIGINT DEFAULT NULL
) => INTEGER
Creates a file processing job to import a file from disk. Relevant parameters:
file_path: Where to import the file from (must end in a filename)
attribute_id: ID of files attribute that receives the file
record_id: ID of record to update files attribute value of (NULL = new record)
The source file is deleted, if the import is successful.
The filepath is always relative to the import path, defined in the server configuration file. For security reasons, absolute paths are not supported.
for Import (???)
read filenames via csv in a temp table and then loop the above over the table ?
🤷