Services Plugins FAQs

How can I save files in AWS in a path like dir1/dir2/file.txt?

I have the AWS File uploader plugin but I need to save files at a lower level than the bucket, for example:

currently I can only save things in
bucket-name/dir1/file.txt
(from now on path1)

but I need to save things from a more complex file structure such as
bucket-name/dir1/dir2/dir2/file.txt
(from now on path2)

if I try to do it this second way I get this error:

The request signature we calculated does not match the signature you provided. Check your key and signing method.

this error only happens if I try to save the file as path2, not path1.
my question is, can it be done? and how?

thanks

Hello @jr1,

Thank you for reaching out, and I apologize for the delayed response. :pray:

Our plugin is currently capable of creating a new folder and uploading files to it using Path1. However, it’s not currently possible to create a subfolder inside a folder in the bucket with our plugin using Path2. If you need to organize your data hierarchically, you may consider setting up multiple buckets to separate different types of information. If the buckets are within the same account, you won’t need to create new access and secret keys; you can simply change the bucket name and region if necessary.

I hope this information helps with your use case :pray:

Cheers! :hugs: