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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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