Upload file with same name

Answered
New post

Comments

3 comments

  • Murtza

     You are running into a name collision by trying to upload a second file with the same name to one folder. You have two options to fix this. The first option is to rename to the file and upload it to the same folder. The second option is to upload preserve the file name and upload it to a different folder.

     

    You can also use the Preflight Check endpoint to check for name collisions before trying to upload a file. 

     
     
    0
    Comment actions Permalink
  • mustafadefcon

    Is there any option where box will auto version the already existing file in the folder. When we will upload the new file , it will get new version. Is there any API like above. Mustafa

    0
    Comment actions Permalink
  • jkjkjk

     the box content uploader has that baked in https://developer.box.com/docs/box-content-uploader

    0
    Comment actions Permalink

Please sign in to leave a comment.