I’m using Baserow Self-Hosted with the Advanced plan. My application contains a file upload field where users can upload multiple PDF files that are then processed further.
When users upload multiple files using the file form with the Create Row action, all uploaded files are saved in a single row. I would like the application to automatically create a separate row for each uploaded file. For example, if a user uploads 8 files, I would like 8 new rows to be created, with each row containing one file.
Is this currently possible in Baserow, or is there a recommended workaround to achieve this behavior?
Hi @LucasMathijssen,
Natively in the application builder, this won’t be possible I’m afraid. When a row event is executed (such as creating/updating a row), it’s operating on a single row, so splitting those files across multiple rows won’t be possible at the moment.
In the not-too-distant future, however, it’ll be possible to do this with the help of the automation builder. You will be able to trigger on a row being updated, iterate over its file fields, and re-create each one on a new row of a separate table.
If this behaviour is urgent, you may be able to do this with a third-party automation tool such as n8n/Make. The same steps apply: when a row is updated > send them a webhook request > create a row for each file field.
Cheers,
Peter Evans
1 Like
Thanks! I managed to solve this using n8n.
When a file is uploaded, it is first added to a separate table that triggers a webhook whenever a new row is created. n8n receives this webhook, splits the uploaded files, and loops through them to create a new row for each individual file. From there, the files are processed further inside n8n.
1 Like