Hi Harshraj Singh,
You can Put your object on your desired S3 folder easily. Please find the below image for your reference.
When creating your put object request
, it's important to follow a specific format for assigning a value to the Key
attribute. For example, you might use the format Country/CountryName/ObjectName
. In this case, "Country" represents the main folder, "CountryName" is the subfolder, and "ObjectName" is the name of the object you wish to store in S3 under this path.
Keep in mind, if the specified main folder and subfolder already exist in your S3 bucket, the new object will be stored within that existing structure. However, if the folders do not already exist, your REST call will automatically create the main and subfolders with the names you provided and then place your object inside the newly created folders.
Hope you find this helpful. Cheers!
Hello,
You need to use this marketplace component https://marketplace.mendix.com/link/component/120340 where you can connect to the aws s3 bucket, but don't use the same bucket used to deploy the application if your environment is mendix or privite cloud on kubernetes.
Hi Harshraj,
you have to change the key value of put object
Suppose you have a folder name upload inside bucket
then in key put 'upload/'+$filedocument/name , It will work.
Please mark this accepted , if it solves your problem, or let me know if you need more help!