Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes

What is the file size upload limit for SharePoint online?

What is the file size upload limit for SharePoint online? the File upload limit for SharePoint Online in Office 365 Business Essentials and Office 365 Business Premium is 10 GB per file and file ...
Mohamed El-Qassas MVP's user avatar
6 votes
Accepted

SP Online - SharePoint Hosted Add'in - type(extension) of pages

.html and .htm are absolutely identical. In terms of apps there is no difference if you are creating .aspx or .html. But you need to consider your requirements carefully. For example, if you ...
Sergei Sergeev's user avatar
4 votes

How to get a file using SharePoint Client Object Model with only an absolute url at hand?

Try something like this Uri filename = new Uri(@"file full url"); var f = this.Web.GetFileByServerRelativeUrl(filename.AbsolutePath); var stream = f.OpenBinaryStream(); this.Context.Load(f); this....
yunui's user avatar
  • 81
3 votes

Get file data from REST

You can combine these two by $expanding ListItemAllFields column of the File. ListItemAllFields is __deferred property of File. I believe you know that we need to $expand all Lookup columns and ...
Atish Kumar Dipongkor's user avatar
3 votes

File wont checkIn via rest

Turns out, the comment is very important. My previous comment was "Checked in during Migration." I believe the extra "." was causing the issue. When I changed the checkin comment to "Migration", it ...
prog_24's user avatar
  • 211
3 votes

How to use Microsoft.SharePoint.Client.File.SaveBinary method?

Save document library file to local file system using CSOM. using (var clientContext = new ClientContext(url)) { var list = clientContext.Web.Lists.GetByTitle(listTitle); var listItem = ...
Divya Sharma's user avatar
  • 1,461
3 votes
Accepted

How to view files in a library in SharePoint Designer

Open site in designer->All Files-> select Document Library please check the below image
TARUN's user avatar
  • 2,856
3 votes
Accepted

Download sharepoint document with REST as binary file not working for me

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 ...
Mikel's user avatar
  • 343
3 votes

I want sharepoint API to list last 5 files that got modified in a range of newer to older

Try using your REST API something like below: siteUrl/_api/web/lists/getbytitle('Library Name')/items?$select=Title,FileLeafRef&$orderby=Modified desc&$top=5 Or if you want to get the files ...
Ganesh Sanap - MVP's user avatar
3 votes

Download file from SharePoint Online with PowerShell

You can use this cmdlet : Get-PnPFile Get-PnPFile -Url fileUrl -AsFile
a1mery's user avatar
  • 344
2 votes

Selecting only PowerPoint files in a CAML query

You may use DocIcon to determine the type of file in your CAML Query <Eq><FieldRef Name="DocIcon"/><Value Type="Computed">pptx</Value></Eq> Source: Filter file types ...
Nadeem Yousuf-AIS's user avatar
2 votes
Accepted

Selecting only PowerPoint files in a CAML query

Try: <Where><Eq><FieldRef Name='FileExtension'><Value Type='text'>pptx</Value></FieldRef></Eq></Where>
Juan Pablo Pussacq Laborde's user avatar
2 votes
Accepted

Take InfoPath form data in XML and upload it into other Document Library

Hey for your tried code 2, Just replace this FileInformation fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(context, file.ServerRelativeUrl); With this var clientResultStream = file....
Aakash Maurya's user avatar
2 votes
Accepted

Do File System Operation via app pool account

You can use RunWithElevatedPrivileges to perform System.IO operations. Try below code: SPSecurity.RunWithElevatedPrivileges(delegate() { String folderpath = "" + @"c:\myfolder"; if (!System....
Gautam Sheth's user avatar
  • 30.9k
2 votes

Retrieving the file size / checksum

Make a GET request using this It will show response in JSON format. You can use the below rest Api to make a request. /_api/web/getfilebyserverrelativeurl('/Library Name/DocumentName.doc')/Length?@...
sam's user avatar
  • 182
2 votes

What is the file size upload limit for SharePoint online?

FEATURE DESCRIPTION File upload limit 10 GB - 1 byte (10,737,418,239 bytes) per file. In classic mode, upload methods other than drag and drop have a 2 GB limit. File attachment size limit ...
Dock Intranet Portal's user avatar
2 votes

What is the file size upload limit for SharePoint online?

In the latest update (currently August 2017), file size limit has been increased to 15GB instead of 10GB. File attachment size limit keeps beeing 250 MB. SharePoint Online limits in February 3rd of ...
Sergio's user avatar
  • 608
2 votes
Accepted

Getting SharePoint Server 2013 to accept a .html page

It's a security measure on the SharePoint-side. This article has some details about this. In short: You can configure this the "simple" way for a SPWebApplication and set Browser File Handling to ...
Nils's user avatar
  • 2,327
2 votes

How to restrict user upload file to type PDF only

There is no OOTB solution to restrict file with specific extension. You can create event receiver and override "ItemAdding" method.In this method,you can check the extension of file. If you want to ...
Akshay Belure's user avatar
2 votes
Accepted

How to create and modify files in the style library using a webpart?

You can create a file in Style Library via JSOM using the below code <button onclick="SP.SOD.executeFunc('sp.js', 'SP.ClientContext', createfile);" >Create file</button> <script type="...
Mohamed El-Qassas MVP's user avatar
2 votes
Accepted

How to Checkin welcome page with powershell for SharePoint 2016

$spWeb=Get-SPWeb "SiteURL" $folder = $spWeb.RootFolder $pageURL=$folder.WelcomePage $page = $spWeb.GetFile($pageUrl); if ($page.CheckedOutBy.UserLogin -eq $spWeb.CurrentUser.UserLogin) { $page....
Deepmala's user avatar
  • 1,857
2 votes
Accepted

Get column values where filename is x

You probably need below: /_api/web/GetFolderByServerRelativeUrl('DataServicesDocs/myProject/')/Files('sharepoint_test.csv')?$expand=ListItemAllFields It will return files properties along with ...
Deepmala's user avatar
  • 1,857
2 votes

Sharepoint REST API Download File Using NodeJs

There are some libraries available for such a task. For example consider sppull. With sppull you can easily download file with just a few lines of code: var sppull = require("sppull").sppull; var ...
Sergei Sergeev's user avatar
2 votes

SharePoint Online File MD5, SHA256, MD5 Checksum

SharePoint uses some checksums to determine if 2 documents are the same internally. These checksums are used by search for the duplicate detection. This has is build in an "undisclosed way" (MS ...
Heiko Hatzfeld_MSFT's user avatar
2 votes
Accepted

C# - How to add document with REST API in SharePoint 2016 On-Premise

The following code for your reference. //Method to upload File public static bool AddDocumentToNewPortal(byte[] fileArray, string siteurl, string fileName) { bool status = false; ...
LZ_MSFT's user avatar
  • 6,219
2 votes

How to move (rename) a file with the URL using JavaScript

As fox has answered using REST API, I would like to add via JSOM(way you have coded). Pointing out issues in your code. First you should load the onenote_file and run executequeryasync once to get ...
Siddharth Vaghasia's user avatar
2 votes

Difference of two files using SharePoint

Finding differences between two csv files is not an OOB capability of SharePoint. SharePoint could host the files, and you could use JavaScript to read and compare the file contents.
Mike2500's user avatar
  • 8,060
2 votes

How to get content of file in sharepoint using sharepoint rest api

We need to use the below API: GET https://mysite.sharepoint.com/<site_name>/_api/web/lists(guid'<list-id>')/items(<item-id>)/File api of sharepoint using list id and item id ...
SP 2022's user avatar
  • 4,074

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