Uploading Files and Folders to Box using Box Java SDK Api
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.
Please sign in to leave a comment.