29

The link can be reproduced using the following link, where "Documents" is the name of the library: http://spsite/_layouts/download.aspx?SourceUrl=http://spsite/Documents/sample.docx Effectively the download.aspx will read the content of the file you send as the SourceUrl, and render it back to you on the HTTP response. Hope that helps


8

I was trying James' solution but was having problems building the correct URL of the document. To get the URL you can: Open Dev Tools (F12) Open the Network tab Click 'Start capturing' button Click the download a copy button for the document you want the link for The HTTP GET request URL will appear in the network tab.


6

Out of the box, this isn’t possible. You can, however, restrict both download and printing with Information Rights Management for all users, but not for a group of users. And since there is a snipping tool and a print screen function on all operating systems, users can with a little effort still get the content of document and save it somewhere else. So this ...


6

You could consider the following solution: retrieve files collection via SharePoint JSOM API utilize getBinaryContent(path, callback) from JSZipUtils to load file content by file url generate zip file Example loadFiles("Documents/2013", function(files) { var zip = new JSZip(); zipFiles(zip,files,0,function(content){ ...


6

You can set "Download to Offline clients" as No at your library level settings. Go to Library Settings --> Advanced settings --> select NO To download Refer my answer in similar thread


5

Sharepoint 2013 trial seems to be available for download here: https://www.microsoft.com/en-in/evalcenter/evaluate-sharepoint-server-2013


5

As I understood you need source of the file from content DB to check it into Source Control. Please, try the following code: Add-PSSnapin Microsoft.Sharepoint.Powershell $web = Get-SPWeb <path to web> $file = $web.GetFile('<relative path to file>'); $bytes = $file.OpenBinary(); [System.IO.File]::WriteAllBytes('<path to file on your disk>', ...


5

I believe this is what you are looking for. You can export a specific file or object from the Export-SPWeb context, not the whole kitten kaboodle. Export-SPWeb -identity "http://sharepoint" -ItemUrl "/default.aspx" -Path "c:\default.aspx" Import-SPWeb -identity "http://sharepoint" -Path "C:\default.aspx"


5

You can't push the file to the client from the server. The server side has no knowledge of the client side. You have to write a client application, that will pull the file. First, you'll have to know the url of the file. Then, a simple var wc = new WebClient(); wc.UseDefaultCredentials = true; wc.DownloadFile(targetFile, @"c:\temp\myfile.txt"); would do ...


5

You only see the last error because Set-Content overwrites the existing content, use Add-Content instead. If you want to have a more encompassing approach, like Robert suggested, there's a more PowerShell'y (?) way of doing this with Start/Stop-Transcript which takes all console output between the Start & Stop cmdlet calls and outputs it to a file.


5

I think the best option is using the Open with Windows Explorer, you can copy multiple documents. Another option is, Using the 3rd party add-on, Download Multiple Documents. it is free. Lastly, you can use the PowerShell script to download multiple files.check this


5

If you want to disable the download-option for your users, they should have View Only permission level. Permission levels Read and any greater include the permission for downloading a file. View Only permission levels still includes the following permissions: View pages, items, and documents. Any document that has a server-side file handler can be viewed ...


4

Try adding: _WebClient.Credentials = CredentialCache.DefaultCredentials;


4

Best case scenario is to get your Mac users comfortable with the Office Document Connection application. It allows for checking in and out of the files and working off the server documents.


4

There were some SharePoint 2010 evaluation VM's available from Microsoft at one point but I don't think you can get them anymore. Even if you could, they can only be used for a limited time - generally between 30 and 90 days. You can create your own VM for SharePoint 2010 quite easily. If you use SharePoint Foundation instead of SharePoint Server you can ...


4

Please look at the EncodedAbsUrl, FileDirRef, and FileRef properties. The one you use depends on your needs but I suspect you'll want EncodedAbsUrl or FileRef. Here is an example of what each returns: EncodedAbsUrl: http://yourserver.com/Pages/home.aspx FileDirRef: /Pages FileRef: /Pages/home.aspx var ctx = new SP.ClientContext(siteUrl); var items = ctx....


4

If you get an error adding SharePoint DLL which states Could not load file or assembly 'microsoft.sharepoint, Version=12.0.0.0 you can try using this script instead [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") and you can continue exporting the WSP from your 2007 environment $farm = [microsoft.sharepoint.administration....


4

Based on tutorial , I think you don't need to have a copy from the above files because it will be uploaded inside SharePoint , So if you need the mentioned code at tutorial work, try to use the following script instead script tag references <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script&...


4

Information Rights Management is the only way to protect the documents and don't allow user save the document in his/her system. You need to setup IRM on your network and the enable it in Central Administration. You can find the step and more detail from below links 1.https://www.concurrency.com/blog/w/office-365-%E2%80%93-rms-irm-external-sharing 2.https:...


3

i have no idea what you mean by: From where I can download SP 2010 VM in my system where to install in your vm or where to download a vm to install on your local machine? it will run on your setup but will not be smooth, i think you should be looking at atleast 6gb ram.... your going to be running sql server on the same vm if its a tests vm amoungst ...


3

If your client code is running on server which means that request is being sent from server and your file will eventually downloaded on server. I would recommend you to write a code which runs on your computer and download the file from Server. You can Lists.asmx or OOTB Web Service to download the file from the Server.


3

As previously stated, you should have at least 6GB of RAM to run an SP2010 VM, but you'd be better off with 8 or more. The pre-built VM's for 2010 by Microsoft are getting harder to find, IMHO. I always use this guide as my go-to because it gets you up and running with a good, stable, all-in environment with links to all of the evaluation software. http:/...


3

$RootFolder.SubFolders will give you the collection of folders. Loop through the collection and use StartsWith with each folder: $folders = $RootFolder.SubFolders; foreach ($folder in $folders) { if ($folder.Name.StartsWith("a")) { // Call $folder.Subfolders again to get folders present in this folder // Then use foreach to loop ...


3

Here is a generic idea Using stsadm -o enumsolutions get all installed solutions on the farm Then for each solution you need to download it using following technique [Enable Powershell] (http://support.microsoft.com/kb/968930) [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Cult ure=neutral, PublicKeyToken=71e9bce111e9429c") [...


3

Try this IF Block below: Code: if (file != null) { FileInformation fileInfo = file.OpenBinaryDirect(context, fileRef.ToString()); var fileName = Path.Combine(filePath,(string)listItem.File.Name); using (var fileStream = System.IO.File.Create(fileName)) { fileInfo.Stream.CopyTo(fileStream); } } Hope this will help you.


3

If users don't have access to the file, they don't have access to the file, no matter what. So, if you display real links to the file, as far as SharePoint is concerned, they cannot get the files content; when they click the link, they get an "access denied" message. Your only option here is to build an applicative (_layouts) page; that page would take ...


3

Ok i found the problem... First: The API calls were both correct. The fact is that I am developing with Nodejs and I realized that the request module automatically converts the result to utf8 as the documentation says: encoding - Encoding to be used on setEncoding of response data. If null, the body is returned as a Buffer. Anything else (including the ...


3

There are two ways to do it: Use the Open with Explorer option available at the ribbon row. With the Explorer view open, you can copy+paste the folder in total to your local files, which does the same functionality as downloading would. Use SharePoint Designer to access the folder's path, where you can also download the folder with all of its contents.


3

There is no frank download/upload option, The simplest solution is using Open With Explorer option in the document library to copy/move the doc contents to another doc library. Save Document as Template (include the content ) "Open with Explorer" in a SharePoint Online document library Classic Mode In the SharePoint Online document library, Click the ...


2

While Auditing is not available from the UI in Foundation, you can access the Audit functionality and turn it on via the object model: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/53e79142-88c9-48f1-b5a5-a6259c9f6f97 If you notice in this post, Auditing is advertised as a feature of Foundation, but it takes a little extra work to ...


Only top voted, non community-wiki answers of a minimum length are eligible