Describe the problem/error/question
Hey guys, I have a Notion integration where a person submits multiple files and I need to have them stored in a notion Media field.
First problem was that there is no way to upload files so I moved to a workaround of uploading to GD and then using the link to reference them in Notion.
But now there is the next problem. The number of files is unknown. But when I choose a property from the update page Notion node and the property type is Media it wants to put “File URLs” in the form of “Name” string and “File URL” string. So I need to list them one by one. Since I don’t know the number and it changes this is not possible. It doesn’t allow setting an array, it doesn’t allow setting undefined, null or empty string. So you should have always the right number of files.
I tried also looping over and again using an Update page Notion node where I put one by one the files but then each is overriding the field items instead of Appending.
Based on this it seems that the only way now to do this is with custom code.
Please share your workflow
Example of what I tried last:
Information on your n8n setup
- n8n version: 1.88.0
- Database (default: SQLite): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: MacOS