-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Prefixing can be used to create a pseudo-directory structure in the bucket.
tusd supports this with a hardcoded ObjectPrefix option:
in @tus/s3-store we have partKey where this could be supported:
tus-node-server/packages/s3-store/index.ts
Lines 144 to 154 in 0af377d
| private partKey(id: string, isIncomplete = false) { | |
| if (isIncomplete) { | |
| id += '.part' | |
| } | |
| // TODO: introduce ObjectPrefixing for parts and incomplete parts. | |
| // ObjectPrefix is prepended to the name of each S3 object that is created | |
| // to store uploaded files. It can be used to create a pseudo-directory | |
| // structure in the bucket, e.g. "path/to/my/uploads". | |
| return id | |
| } |
However it might be more flexible have a function getObjectPrefix (upload: Upload) => string so it can be done dynamically based on metadata?
cc @fenos
Metadata
Metadata
Assignees
Labels
No labels