Overview
This is a personal note on how to upload multiple files to mdx.jp object storage. It references the following video.
Preparation
Working on macOS.
brew install s3cmd
Configuration (please refer to the video for details.)
s3cmd --configure
Batch Registration (Sync)
The following syncs files in the local rekion folder to s3://rekion/iiif/.
s3cmd sync docs/rekion/ s3://rekion/iiif/ --exclude '.DS_Store'
Reference
find . -name '.DS_Store' -type f -delete
Batch ACL Change
s3cmd setacl s3://rekion/iiif/ --acl-public --recursive
Note (CORS Permission)
I prepared the following XML file and attempted to enable CORS.
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
However, the result was as follows, and CORS could not be enabled with this method.
s3cmd setcors cors.xml s3://rekion/
ERROR: S3 error: 501 (NotImplemented): A header or parameter you provided implies functionality that is not implemented.
I would like to continue investigating how to configure this.
Summary
I hope this serves as a useful reference for using mdx.jp object storage.