Skip to main content
Participant
November 10, 2022
Answered

Documentation on getting pre-signed URI is not clear enough

  • November 10, 2022
  • 1 reply
  • 894 views

https://developer.adobe.com/document-services/docs/apis/

 

I have the credentials including an access token, but I don't know what to put as the "string" value for the "mediaType"in the body of the POST request. Is this where the actual PDF I want uploaded goes? If not, how do I do that? Do I need to convert the PDF into an byte array first? I'm so confused.

    This topic has been closed for replies.
    Correct answer Raymond Camden

    You want a mime type, like application/pdf. See my post here for an example: https://medium.com/adobetech/announcing-the-new-adobe-document-services-rest-apis-8d85951176cf

    1 reply

    Participant
    November 10, 2022

    I see now that the value for "mediaType" is something like "string" but what other values can there be? If the media type I want to upload is a PDF, do I put "pdf"? I did that and I still get a 400 error "Bad Request" "missing required parameters or values are incorrect."

    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    November 10, 2022

    You want a mime type, like application/pdf. See my post here for an example: https://medium.com/adobetech/announcing-the-new-adobe-document-services-rest-apis-8d85951176cf