Setting Content Disposition using Rackspace Cloud Java APIs

319 views Asked by At

I am using Java Bindings for Rackspace Cloud API

I am trying to figure out how to set content disposition for the file that I upload to rackspace

I do not see a straightforward way of doing this through FilesClient object exposed through this API

1

There are 1 answers

0
jsshah On BEST ANSWER

Java API does not provide this functionality out of the box

I ended up changing the FilesClient.saveObjectAs function

-- added a String parameter as "contentDispositionValue" -- the code that constructs the request, adds this parameter to a set of request parameters