Skip to main content
Question

Problems in uplaoding Files to Box using Curl Calls - API

  • May 22, 2025
  • 6 replies
  • 13 views

Forum|alt.badge.img

Hi, I am trying to implement the curl call for uploading a file to BOX using documentation way but that way we get this response 'API Upload did not contain a file part.' Please responsd as soon as possible. Thanks.

6 replies

Forum|alt.badge.img

Hi! 

Can you send me the syntax you are using for your CURL call? 

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

Hi, Thanks for getting back to me.
This is my API call you can clearly see the call and response as well.


BOX__yrXV1cSKMlNHVS0pjM1K4g.pngI am using this CURL given at official documentation.
Please help.
Thank You!


Forum|alt.badge.img

Can I see the body tab? You should be able to select a file. 

BOX__B_rY5O6IiBfA_ZXAoTTjgw.png


Forum|alt.badge.img

Hey, Thanks again. I did as you said but here comes another issue:


BOX__FF8OK-2QbZKXLSSLILaErQ.png


Forum|alt.badge.img

Ah! the syntax in the value field is wrong. 

Try it similar to this: 

{
"name": "Photo.png",
"parent": {
"id": "124132"
}
}

Forum|alt.badge.img

Hi,
Thank You so much! Mr. Alex
It is working fine.