How to upload a new version of the file with the new name
I want to upload a new version of a file but with the new file name. My filename has date on it. example - box file - test_6/30/2018. I have a file on my local with filename test_7/6/2018. How can i upload the new version with changed/updated name(test_7/6/2018).
I am using update_contents() but it is uploading the new version with the existing name. I am using python box API
-
Hi ,
Thanks for your post!
I'm not a developer, but there's a similar post on uploading files here:
- Forum thread: https://community.box.com/t5/Platform-and-Development-Forum/How-to-create-a-new-version-of-file-if-the-file-with-already/m-p/55928#M4605
- Upload File Version endpoint documentation: https://developer.box.com/v2.0/reference#upload-a-new-version-of-a-file-1
In that case, the user wanted to upload a file with the same name. But the solution by Cary talked about the Upload File Version endpoint, which has an optional parameter to supply a new name.
Is that what you are looking for? Apologies in advance for my limited understanding!
-Scott
Please sign in to leave a comment.
Comments
1 comment