Skip to main content
December 6, 2024
Question

Error uploading file to Box(HTTP/1.1 415 Unsupported Media Type

  • December 6, 2024
  • 2 replies
  • 0 views

Hi.

I was trying to upload a file to Box from Appian, but the following error occurred, so I am posting this.
I'm getting a Media Type error, but I'm not sure if the Request Body is written incorrectly or if I'm not connecting to Box's upload API.
If anyone knows please let me know.
Details below.
・Integration Object

・Box account
Free version for individuals
 
I'm guessing that the upload API cannot be executed with the free version of Box, so if you know anything about that, please let me know.
 
We apologize for the inconvenience, but please.



    2 replies

    varuntejg243705
    December 6, 2024

    Hi [mention:09def98cea664ff8b2b1b4e8d229ac58:e9ed411860ed4f2ba0265705b8793d05] ,

    I can see you are using Content-type twice and it is not needed in headers, as the Content-type is wrong according to the request you made.

    Remove the header Content-type and try it may work.

    Also please check the integration by following below steps:

    1. Verify Server's Accepted Content Types
    2. Verify Request Body

    December 6, 2024

     Hi Varun

    Thanks for the reply and advice!

    As you say, it looks like the content type is incorrect.

    I'll try Verifying Content Types.

    Thank you!