104
Views
2
Comments
Solved
[Amazon Simple Storage Service (S3)] Creating a folder using Amazon S3 and saving file on the created folder

Hi all,

Is it possible to create a folder inside a bucket and save an object in the created folder using this forge asset? I can't seem to find examples of how to do it. I need to create a functionality where when an Item is created, a folder will be created in the s3 bucket and an attachment that is uploaded on the item details will be saved in that folder. Please let me know if there are existing blogs or videos about this functionality, that would help a lot.


Regards,

Marvei

2021-10-09 07-57-44
Stefan Weber
 
MVP
Solution

Hi,

when you use the PutObject server action of the connector you add prefixes to your object key in the form of

myfolder/mysubfolder/my file.pdf

This mimics a hierarchical folder structure. Technically it is an object with a prefix, where the prefix ist "myfolder/mysubfolder"

Best

Stefan

2025-12-19 11-44-03
Marvei Paña

Thank you @Stefan Weber 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.