Skip to main content
Question

Uploading Files VIA API

  • May 22, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

I'm attempting to upload files to BOX via the api and am getting the error: 

<html>

<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>

<body>

<center><h1>400 Bad Request</h1></center>

<center>The plain HTTP request was sent to HTTPS port</center>

<hr><center>nginx</center>

</body>

</html>

My https destination config is:

description = "Retrieve Box Data";
host = "upload.box.com";
port = 443;
pathPrefix = "/api/2.0";
authType = none;
useSSL = false;
timeout = 10000;
sslHostCheck = true;
sslAuth = anonymous;

Additionally, my tokens are valid and this is working in Postman. Can someone advise on what is missing? Does my authType or useSSL need to be adjusted? 

1 reply

Forum|alt.badge.img

I would checkout this guide and see if this helps you at all. 

Thanks, 

Alex, Box Developer Advocate