Skip to main content
Question

Uploading files from Python

  • May 22, 2025
  • 2 replies
  • 11 views

Forum|alt.badge.img

Hi,

I want to upload files from a local PC folder to a specific Box folder using a Python program.  Any help or sample code for doing this would be much appreciated.

Thanks

 

 

2 replies

Forum|alt.badge.img

Hey Suresh, 

Not sure if you still need help here, but if so, I'd recommend taking a look at using our Python SDK: https://github.com/box/box-python-sdk. 

Here is the specific section on uploading a file: https://github.com/box/box-python-sdk/blob/master/docs/usage/files.md#upload-a-file. 

We also have a small Python upload file example on the right hand panel here: https://developer.box.com/reference/post-files-content/. 

Hope that helps put you on the right path! 

Best,

Kourtney, Box Developer Advocate


Forum|alt.badge.img

We also have a small Python upload file example on the right hand panel here: https://developer.box.com/reference/post-files-content/. 

Hi I tried to follow this link, but I land on an error page. I am also looking to do something similar and would find reference material valuable.