Skip to main content
Question

error415

  • May 22, 2025
  • 2 replies
  • 5 views

Forum|alt.badge.img
Hello
The sentence may be strange because it translates Japanese directly into English.

I'm trying to upload on a page called API Reference (https://ja.developer.box.com/reference/post-files-content/).
I'm getting the error 415.
Looking at the verification, "Request.js: 37 POST https://upload.box.com/api/2.0/files/content/?fields= 415 (Unsupported Media Type)"
Was out.
How can I upload it?
Thank you.

2 replies

Forum|alt.badge.img

Hi there,

Could you post the code that you're using when you see this issue please? Typically that error appears when generating an embeddable preview URL, but the code sample should help us figure out what may be happening.

Thank you,

Jon 


Forum|alt.badge.img
Thank you very much. Basically leave the default
I am trying to set the following items

attributes.name
testf.txt

parent.id
0

file
C: /Users/hnagaoka/Desktop/testf/testf.txt

I'm a beginner, but thank you.