Closed ghost closed 4 years ago
Its really urgent requirement for me. @alexmojaki could you guide me?
I said in #11 that I didn't think this library was helpful to you as .save()
just writes the whole thing in one go. Did you understand that?
Anyway the solution is to subclass StreamTransferManager
and override one of the customise*Request
methods to set the content disposition: http://alexmojaki.github.io/s3-stream-upload/javadoc/apidocs/alex/mojaki/s3upload/StreamTransferManager.html#customiseCompleteRequest-com.amazonaws.services.s3.model.CompleteMultipartUploadRequest-
Something like this:
public void customiseInitiateRequest(InitiateMultipartUploadRequest request) {
request.getObjectMetadata().setContentDisposition("...");
}
Thanks! @alexmojaki. it's working for me.
Hi, Thanks for this lib. I'm using this lib. I need help about set Content-disposition. Can you guide me on how to achieve this? here is my sample code.