At times it is required to have the option to save a copy of a document uploaded in SharePoint document library, in a page or a webpart.
The url to get the save option for a doc is - http://site/_layouts/download.aspx?SourceUrl=url-of-document-in-library
Change the bold text with the actual url, i.e., with the site url and the url to the doc in the doc library.
For example, if the site is www.contso.com and the doc "Test" is uploaded in SiteAssets library, the url to save a copy would be -
http://contso.com/_layouts/download.aspx?SourceUrl=http://contso.com/SiteAssets/Test.docx
The url to get the save option for a doc is - http://site/_layouts/download.aspx?SourceUrl=url-of-document-in-library
Change the bold text with the actual url, i.e., with the site url and the url to the doc in the doc library.
For example, if the site is www.contso.com and the doc "Test" is uploaded in SiteAssets library, the url to save a copy would be -
http://contso.com/_layouts/download.aspx?SourceUrl=http://contso.com/SiteAssets/Test.docx
In the above example we can do only from the front, how can we do it from end. e.g i want to get user name from email id?
ReplyDelete