Hey all,
Does anyone know how I can create a flow that creates a subfolder in the media folder?
To explain, I have a multi-tenancy setup. When a new client registers I want a folder to be created like /Media/Uploads/{client_id}.
Any ideas?
[UPDATE]
I’ve got it to work using this sort of call:
curl -X POST https://example.com/folders
-H ‘Content-Type: application/json’
-H ‘Authorization: Bearer MY_TOKEN’
-d ‘{
“name”: “New Folder”,
“type”: “folder”,
“parent”: “PARENT_FOLDER_uuid”
}’
My problem now is how to limit customers’ uploads to their own folder.
I’m thinking I might just abandon this idea and keep uploads as a flat folder.