-2

I would be requiring to set some custom headers to the files I am uploading to s3 I can edit the meta data but cannot have custom headers googled up it showed that can be done using middleware any help is most welcomed

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
jision
  • 181
  • 2
  • 12
  • Which language and SDK are you even using? Show us some example code so far of where you're putting the object. – Brad Oct 27 '18 at 15:20

1 Answers1

0

If you want to add a custom header to your file you will have to read and re-write the file after adding the headers. Some references -

Instead you can create a Thrift object over the object you need to upload and add metadata within the object. The downside to this is that you need to unbox the object before reading (as opposed to a direct S3 bucket link, like the ones used for images, etc). I have used thrift and avro objects to send encryption related information with an encrypted file to S3, which was later used to decrypt the file based on the info.

Ankita
  • 11
  • 2