Skip to content

Commit f24ec24

Browse files
committed
feat(consts): add constant AWS_S3_MAX_KEY_BYTES
- It will be used in apify/apify-core#27042
1 parent d31388f commit f24ec24

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/consts/src/consts.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,3 +718,10 @@ export const STORAGE_OWNERSHIP_FILTER = {
718718
} as const;
719719

720720
export type STORAGE_OWNERSHIP_FILTER = ValueOf<typeof STORAGE_OWNERSHIP_FILTER>;
721+
722+
/**
723+
* The object key name in AWS S3 consists of a sequence of Unicode characters encoded in UTF-8,
724+
* with a maximum length of 1,024 bytes or approximately 1,024 Latin characters.
725+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
726+
*/
727+
export const AWS_S3_MAX_KEY_BYTES = 1024;

0 commit comments

Comments
 (0)