Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to specify which metadata go to the S3 store? #985

Closed
akhayyat opened this issue Aug 18, 2023 · 2 comments
Closed

Is it possible to specify which metadata go to the S3 store? #985

akhayyat opened this issue Aug 18, 2023 · 2 comments
Labels

Comments

@akhayyat
Copy link

Question
Is it possible to specify which metadata attributes are sent to the S3 store and which are not?

I'm getting the following error:

response code: 500, response text: s3store: unable to create multipart upload: MetadataTooLarge: Your metadata headers exceed the maximum allowed metadata size.

I wish to be able to disable sending metadata to the S3 store, or to specify which metadata attributes get sent to the S3 store. I still want to be able to receive the full metadata in the http hook.

Is any of this possible? Or is there another way to get all the metadata in the http hook without triggering a MetadataTooLarge error on the S3 store?

Setup details
Please provide following details, if applicable to your situation:

  • Operating System: Linux
  • Used tusd version: v1.10.1
  • Used tusd data storage: OCI Object Storage (s3-compatible)
  • Used tusd configuration: -s3-bucket [...] -s3-endpoint [...] --hooks-enabled-events pre-create,pre-finish --hooks-http [...] -hooks-http-forward-headers Authorization -behind-proxy
  • Used tus client library: tus-js-client 3.1.1
@Acconut
Copy link
Member

Acconut commented Aug 21, 2023

No right now, but in the next major release it will be. v2 will ship with #962, where meta data can be customized (or filtered) in the pre-create hook.

@Acconut
Copy link
Member

Acconut commented Jan 24, 2024

This is possible now since tusd v2. See https://tus.io/blog/2023/09/20/tusd-200 for more details.

@Acconut Acconut closed this as completed Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants