0

Can I upload multiple files with same name in the same folder in SharePoint through rest api?If yes, then please provide example of the rest call of how it can be done.

1
  • You cannot add file with same name in same folder. you need to replace the old file if you do so. Commented May 7, 2020 at 7:08

1 Answer 1

0

No, this is not possible. SharePoint treats the file name as the primary key identifier for a document.

so if you try to upload a second document with the same name, it will overwrite the original file with the new one or return an exception "A file with the name xxx already exists".

If you need two documents with the same name, you will have to either place them in different folders within a document library or in different document libraries.

Thanks Baker Kong

1
  • Thanks for the answer. Commented May 11, 2020 at 16:37

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.