Batch Ingestion API - Large file upload doesn't work | Community
Skip to main content
October 12, 2023
Solved

Batch Ingestion API - Large file upload doesn't work

  • October 12, 2023
  • 3 replies
  • 1727 views

Hello,

I was trying to initialize a large file (json file) upload using the API as described in the documentation - https://developer.adobe.com/experience-platform-apis/references/batch-ingestion/#tag/Batch-Ingestion/operation/completeLargeFileUpload

I am using postman and I get the following output (screenshot attached)

{
    "type""/placeholder/type/uri",
    "status""415",
    "title""Unsupported Media Type",
    "detail""HTTP 415 Unsupported Media Type"
}


Can someone help what's going wrong!


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jayakrishnaaparthasarathy

Hi @sugeshmundayadan  - try to change the content-type as "application/octet-stream" or "multipart/form-data" and see if that works for you. Hopefully, it should work now. 
Refernce: https://experienceleague.adobe.com/docs/experience-platform/ingestion/batch/api-overview.html?lang=en#:~:text=CAUTION-,This%20API%20supports%20single%2Dpart%20upload.%20Ensure%20that%20the%20content%2Dtype%20is%20application/octet%2Dstream.,-curl%20%2DX%20PATCH
Thank you,

Jay.

3 replies

arpan-garg
Community Advisor
Community Advisor
October 12, 2023

Hi @sugeshmundayadan - Did you passed in Content-type? Can you send the request here so that it makes it easier to check.

 

Thanks,

Arpan

October 12, 2023
Below is the request

curl --request POST 
'https://platform.adobe.io/data/foundation/import/batches/01HCGT9JKQB97GSHFWBF371KMT/datasets/65248f22cfe83c28d3b23db4/files/C:\Users\t980261\Downloads\test.json?action=INITIALIZE' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XYZ' \
--header 'x-api-key: XYZ' \
--header 'x-gw-ims-org-id: XYZ' \
--header 'x-sandbox-name: XYZ'
jayakrishnaaparthasarathy
Community Advisor
jayakrishnaaparthasarathyCommunity AdvisorAccepted solution
Community Advisor
October 13, 2023
October 13, 2023

I tried both the option "application/octet-stream" and "multipart/form-data". same issue

Adobe Employee
October 18, 2023

Since you mention you are using postman... did you select the "binary" option in the Body tab, as described here?

https://experienceleague.adobe.com/docs/platform-learn/getting-started-for-data-architects-and-data-engineers/ingest-batch-data.html?lang=en#ingest-the-data-1

NimashaJain
Adobe Employee
Adobe Employee
October 30, 2023

@sugeshmundayadan Did your query got resolved?