10 votes

Disable "new document" in document library for specific users

Yes, you can restrict a few users to upload or add a new document by managing unique permission for your library as the following: Go to your library > Library Setting. Click on Permissions for this ...
Mohamed El-Qassas MVP's user avatar
8 votes

How do I create a upload button on SharePoint online

The upload form for a particular library can be accessed from http://site/_layouts/Upload.aspx?List={ID to the library} You can get the ID by e.g. going to the Document Library Settings, and the URL ...
moe's user avatar
  • 5,267
7 votes

Upload files to SharePoint intranet site using PowerShell

You can use following PS script provided by Todd Klindt in this blog post: $WebURL = "http://portal.contoso.com/sites/stuff" $DocLibName = "Docs" $FilePath = "C:\Docs\stuff\Secret Sauce.docx" $Web =...
andrewsha's user avatar
  • 101
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
7 votes

The remote server returned an error: (401) Unauthorized: While uploading file in document library using App Based Token Authentication

The issue is that the SaveBinaryDirect method does not support app-based authentication. You should use either SharePointOnlineCredentials for your ClientContext or upload files with ...
Dmitry Kozlov's user avatar
6 votes

Url Length Limit when uploading SharePoint 2013 Online/OneDrive for Business

There is a maximum 256 character limit in SharePoint for REST URLs - reference: https://msdn.microsoft.com/en-us/LIbrary/dn292556.aspx However URL parameters are not included in the length-...
M.Jones's user avatar
  • 113
6 votes

Maximum Upload Speed to SharePoint Online?

I asked this exact question a while ago to MS Support. Their answer is you should expect a throughput of 0,75 GB/hour due to bandwith throttling, the CSOM, virusscanning, replication of data etc. In ...
meon's user avatar
  • 323
5 votes

Change the default file upload destination library in a discussion board post

There is an easier way to accomplish changing the default destination folder. Just go to 'advanced settings' in the library. There you can say if you want this library to be the default one for site ...
Rinske's user avatar
  • 51
4 votes

Using chunked upload/StartUpload with sharepoint REST api

The following C# sample shows how to upload large file using the StartUpload, ContinueUpload, and FinishUpload REST endpoints: using (var client = new WebClient()) { client.BaseAddress = webUri; ...
Vadim Gremyachev's user avatar
4 votes

RegEx to validate and replace invalid file name characters from a custom web part file upload control

Found the solution... Here's how I changed my code. private void UploadAttachments(Helper sharePointHelper, IList<HttpPostedFile> postedFileCollection, int itemId) { // Get the list ...
Muhammedh's user avatar
  • 1,157
4 votes

Uploading a large file to Office 365 via CSOM PowerShell

If you are following Office Dev PnP, then they have released brilliant approaches for uploading files of various size. Their code is in c#, which we convert into PowerShell. I had an exactly same ...
Asad Refai's user avatar
  • 5,983
4 votes

Update SharePoint item using Microsoft Flow?

MS Flow doesnt seem to allow you accomplish this at the moment - I came across this scenario as well. You may be able to do it if you set up your flow using the Logic Apps in Azure https://azure....
HarryB's user avatar
  • 1,765
4 votes

Excel file corrupted after uploading to Sharepoint with Python

Figured out the problem with my original code: needed to provide data kwarg and NOT files kwarg: import requests from requests_ntlm import HttpNtlmAuth session = requests.Session() session.auth = ...
mechanical_meat's user avatar
4 votes

How to change file limit on SharePoint Online?

The clear cut answer is: No, You cannot change the limit of Threshold in SharePoint Online. Already answer this here. You can handle your large list using Manage large lists and libraries in ...
Aakash Maurya's user avatar
4 votes

Risks of increasing file size limit above default of 250 mb

I would do a testing before increasing the file size in the farm, because uploading the large file will take more time and some time you can have browser time out. I will have a 10 users at the same ...
Waqas Sarwar MVP's user avatar
  • 56.9k
3 votes

uploading a file to sharepoint using your phpSPO library

The below example demonstrates how to upload a file using SharePoint REST client for PHP: $authCtx = new AuthenticationContext($webUrl); $authCtx->acquireTokenForUser($userName,$password); $ctx = ...
Vadim Gremyachev's user avatar
3 votes

Using Linux Shell scripting to upload a document to SharePoint

From what I could find, in order to perform operations on Office 365, we need to authenticate using claims-based authentication, which is done in not one, but a series of sequential steps. build a ...
Tiago Duarte's user avatar
  • 5,397
3 votes

Best way to change content type on a existing file in a document library

No other way around. Each content type has its own set of fields. Quick edit don't have the flexibility to switch fields dynamically based on the selected content type.
Amal Hashim's user avatar
  • 28.3k
3 votes

Custom master page needs to be uploaded under which category

Below steps will help you to upload and use that master page in a right way. Steps: Go to the Site Settings >> Site collection feature >> activate SharePoint publishing infrastructure feature. Go ...
Dikesh Gandhi's user avatar
3 votes

Authenticate from PowerShell and create a folder

For SPO $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($loginname, $pwd) For SP-OnPrem $...
ThinkB4Code's user avatar
  • 2,950
3 votes

Bulk Complete Forms

I have SP2010 but SP2013 is the same. You can use DasheetView to use the list like excel.
newbie's user avatar
  • 1,737
3 votes

Multiple File Upload in dialog box

The REST api does not provide for uploading multiple files in a single call. You would need to write your javascript to loop thru the collection of files and issue individual calls. Refer this one : ...
Anuja's user avatar
  • 3,093
3 votes

How can I upload a document to a sharepoint subfolder using the REST API?

I suggest to use this endpoint: http://<site url>/_api/web/GetFolderByServerRelativeUrl('<folder relative url>')/files/add(overwrite=true, url='runtime_table.csv')
RiccardoGDev's user avatar
3 votes

Will SharePoint automatically create intermediary folders when adding a file through the REST API?

Would SharePoint automatically create all three subfolders? As per my analysis SharePoint REST API will not create all three subfolders automatically. If folder1 is not exist in the document library ...
Ganesh Sanap - Microsoft MVP's user avatar
2 votes

SharePoint REST POST to upload file produces corrupted or empty file

b1c10's answer is probably on the right track, stating that the problem might be on the file input, try to check if you actually upload the correct stream to the REST API. If the stream is already ...
Thomas Mulder's user avatar
2 votes

SharePoint 2013 Drag and Drop Uploader 'drop here' box placement

@BM- really hit the jackpot on this one. Really nice solution. I noticed though that you need to add the correct class to the under s4-workspace. Like this: <div class="ms-dnd-dropbox" id="ms-dnd-...
Kodz's user avatar
  • 191
2 votes

SharePoint 2013 Drag and Drop Uploader 'drop here' box placement

I had a similar problem to this, and indeed had attempted a solution similar to @Sean M. However, this runs into a more bizarre problem if you have more than one library part on the page, especially ...
BM-'s user avatar
  • 163
2 votes

User Unable to Upload Document to Document Library

The usual 3 step process will help you narrow down your issue: Clear browser history and cache Restart your pc Try a different browser
Taran Goel's user avatar
  • 4,474
2 votes

Mandatory File Attachmant

Instead of a list, why not use a library? They wouldn't be able to get started without a document, and a library still supports metadata fields. No code or other customizations would be needed.
Mike2500's user avatar
  • 8,020

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