Skip to main content
Question

Uploading Files and Folders to Box using Box Java SDK Api

  • May 21, 2025
  • 2 replies
  • 25 views

Forum|alt.badge.img

Hi There,

I'm trying to upload a file to folder in box using the Box Java Sdk api and having a couple of questions.

1) Is there a provision to set the file permissions upfront like read,write etc.

2) Also instead of using the id of the folder to upload , can I upload by specifying the entire i.e. '/FolderA/FolderB/FolderC' in the method call folder.uploadFile().

3) How do I get the complete path of the file/folder after upload. I tried the BoxFolder.Info.getPathCollection() but it requires iterating through the collection. Is there an alternative/direct method that gives me the complete path.

Appreciate any leads on it.

2 replies

Forum|alt.badge.img

Hi There,

 

Where you able to get this done?


Forum|alt.badge.img

Hey, did you find the solutions for all these questions?