Properties when uploading Files using REST in SP 2013

the above question solves to upload the file and fields and save it , is there any way that we can change the name of file and save it. Where should i add the code to rename the file to the above question.

Ex : i upload file as 1.doc but when saving it should be one.doc , is that possible,

Thanks in advance

  • Why not just create an workflow to achieve your requirement? Feb 9 '18 at 9:25

You can create workflow and use "Set Field in Current Item" action and choose "Start workflow automatically when an item is created": enter image description here

enter image description here


Try this very detailed MSDN Documentation to upload/rename via REST in same and different domain.

Article has the detailed step but skeleton would be like below.

  • Read file from client.
  • Upload file to SharePoint.
  • Get document from the uploaded source.
  • Rename and save it back.

Note: You cannot rename file without uploading.

  • if you're going to quote content from a link, it needs to be the meat of the content, not a summary or glossary; that helps no one.
    – TylerH
    Apr 5 '19 at 21:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.