OCA / storage

GNU Affero General Public License v3.0
66 stars 148 forks source link

S3 on AWS #328

Closed Esalpi closed 5 months ago

Esalpi commented 5 months ago

I'm trying to set up storage for AWS S3 as the default for attachments, but it's not working.

I created an AWS user that can read and write to a bucket, generated the keys and configured the storage as follows:

code: s3 protocol: s3 options: {"key":"","secret":""} Autovacuum Garbage Collection?: yes Directory Path? Use Filename Obfuscation?: yes

The _storage_file_write function in fs_attachment is set to create a subdirectory and in any case does not manage the bucket name in the file name.

What am I doing wrong?

Many Thank's

Esalpi commented 5 months ago

Sorry, there was just a permissions problem