Skip to main content
Participant
August 22, 2022
Question

Adobe Acrobat Sign NO_FILE_CONTENT Error in transientDocuments

  • August 22, 2022
  • 1 reply
  • 722 views

I am trying out the transientDocuments API. It works when I use the https://secure.in1.adobesign.com/public/docs/restapi/v6#!/transientDocuments/createTransientDocument or Postman. But keep getting the following error while trying in code using Guzzle as suggested here https://docs.guzzlephp.org/en/stable/quickstart.html#uploading-data

 

Error: `400 Bad Request` response: {"code":"NO_FILE_CONTENT","message":"Must provide file body"}

Sending request to this URL https://api.in1.adobesign.com/api/rest/v6/transientDocuments

 

$file_name = 'shingle-heat-and-foam-roof-decks.pdf';

$post_data = [
    'multipart' => [
        [
            'File' => Utils::tryFopen(public_path("document-files/$file_name"), 'r'),
            'Mime-Type' => 'text/plain',
            'File-Name' => "$file_name",
            'name'     => "$file_name",
            'contents' => Utils::tryFopen(public_path("document-files/$file_name"), 'r'),
        ],
    ]
];

$response = $client->request('POST', $url, $post_data);

 

Postman: 

 

Not sure what I am missing. Had connected to chat support but did not get proper help. Can you please look into this and share the code that works?

This topic has been closed for replies.

1 reply

Meenakshi_Negi
Legend
August 31, 2022

Hi Chittaranjan25505360colq,

 

Sorry for the delay in response.

 

We have checked that you are using the Acrobat Sign Developer service.

As you have a question related to API integration, the experts can best answer it.

Moving this thread to the Acrobat Sign Developer board for visibility.

 

You may also contact the pre-sales team. They will be able to provide you the pre-sales technical assistance and share the correct information.

Please refer to the following link to contact them: https://acrobat.adobe.com/us/en/sign/pricing/plans.html. You may use the Contact us button for Adobe Sign Solutions under the team tab.

 

Thanks,

Meenakshi