Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Content type was not provided or is not supported

New Here ,
Sep 02, 2022 Sep 02, 2022

Hi everyone, 

I am sending a post request to https://api.na3.adobesign.com/api/rest/v6/transientDocuments API with following 

headers: {
Authorization: 'Bearer XXXXXXXXXXXXXXXXXXXXXX'

Content-Type: 'applicatioin/pdf'

Content-Disposition: 'form-data; name="File"; filename="2ed892f1b5e55e2b6622575e57f87f5c"'
},
form: FormData {...}
method: 'POST'
}

but I am getting UNSUPPORTED_MEDIA_TYPE error. I tried changing content type to 'application/json' or 'multipart/form-data' but no luck either. 

Does anyone know a way to fix this? Thankyou

TOPICS
Adobe Sign forms , SDK , Send documents , Web forms
963
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 04, 2022 Sep 04, 2022

HI,

It migght just be a typo, but you have written :Content-Type: 'applicatioin/pdf' 

There is a type in the word application

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 07, 2022 Sep 07, 2022
LATEST

It was a typo I got it right on the app

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines