File names are sanitised to ensure they are valid for use in S3 buckets. This is important for maintaining compatibility with S3's naming rules and preventing issues with file retrieval.
For simplicity, we use the same rules for both S3 bucket names and object names within those buckets. These rules are applied automatically by the system when files are uploaded, either through the UI forms or via the background import process.
Only the following characters are allowed in bucket and object names:
a-z
0-9
.
-
(but these are stripped from the beginning and end of the name)Other rules:
sthree-
-s3alias
Therefore, when sanitising bucket or object names, the following actions are applied:
a-z
, 0-9
, .
or -
are removed.a-z
, 0-9
at the start or end of a name are removed.sthree-
, if present, is removed.-s3alias
, if present, is removed.