Services Plugins FAQs

S3 File Structure When Uploading

I’m trying to create a nested file structure that is unique to each user. The structure is: uuid/project1/layer/1/test.png.

Is it possible to create folders using this plugin?

Hello @user6

Thanks for reaching out.

It is possible to create the folders. Please follow the rules for it (they can be found in the plugin’s documentation):

Folder structure - this defines the way the files are stored in the S3 bucket.
Available values:
“uuid_filename” - the Unique ID will be added to the file name;
“uuid/filename” - the file will be added to a new folder that will have Unique ID as a name, while the file name will remain unchanged;
“folder_name/uuid_filename” - the folder name indicated in the next property will be used, and the Unique ID will become part of the file name; if this value is selected, but the ‘Folder name’ property is not set or is set to a dynamic value that resolves to ‘null’, the folder name 'unknown ’ will be used.

.

As for the uniqueness of each folder for users unfortunately it is not possible.

Please let me know if you have any other questions.

Have a nice day :slight_smile: