function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bulbul HadaBulbul Hada 

How can we create Folder/SubFolder on AWS s3 using apex rest api callout??

Erwin DavidErwin David
In the Buckets list, choose the name of the bucket that you want to create a folder in.
Choose Create folder MyLowesLife (https://www.myloweslife.life/)
Enter a name for the folder (for example, favorite-pics ). Then choose Create folder.
Tom Davies 33Tom Davies 33
You can take the help of the copy command to create a folder while copying a file.

Example:
aws s3 cp <file_name> s3://<bucket_name>/<folder_name>/<file_name>

Code:
aws s3 cp test.xml s3://mybucket/myfolder/test.xml 

OR 

In the Buckets list, choose the name of the bucket that you want to create a folder in.
Choose Create folder MyLowesLife (https://myloweslifelogin.xyz)
Enter a name for the folder (for example, favorite-pics ). Then choose Create folder.