35

You cannot use the following characters in file/folder name: Tilde (~) Number sign (#) Percent (%) Ampersand (&) Asterisk (*) Braces ({ }) Backslash (\) Colon (:) Angle brackets (< >) Question mark (?) Slash (/) Plus sign (+) Pipe (|) Quotation mark (") There are also restrictions about the positition of a character in a file/foldername: You ...


18

~, #, %, & , *, {, }, \, :, <, >, ?, /, |, " above special character is not allowed for files/folder.. you need to replace these characters for create folder or files..


10

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 document library From the above Ribbon, > Click on Stop the inheritance. Then click to Grant Permission to provide a unique permission for specific Provide ...


8

You have to make three calls. The first uploads the file, the second retrieves the list item associated with the file that was just uploaded, and the third sets the field values function uploadDocument() { if (!window.FileReader) { alert("This browser does not support the HTML5 File APIs"); return; } var element = document....


8

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 should end with List=<ID>. Note, that if the URL starts with %7B and ends with %7D, those are decoded to { and } respectively, meaning you don't have to ...


7

If you are using SharePoint 2013 you cannot use SaveBinaryDirect, it does not work with claims authentication. The call made by SaveBinaryDirect does not include the required authorization cookies. Details are discussed in the comments to this blog post: How to do active authentication to Office 365 and SharePoint Online Update (July 2, 2016): I took ...


7

Not to resurrect an old thread but I thought I would add my regex. One issue from KB905231 it is not clear if the prohibited file suffixes (i.e. .files or _files, etc.) are including or excluding the file extension. I assumed including so foo.doc.files would not match but foo.files.doc would. ^(?![\._]|.*(?:\.|\.files|_files|-Dateien|_fichiers|_bestanden|...


7

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 = Get-SPWeb $WebURL $List = $Web.GetFolder($DocLibName) $Files = $List.Files $FileName = $FilePath.Substring($FilePath.LastIndexOf("\")+1) $File= Get-...


7

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 attachment is 250Mb. Note: In classic mode, upload methods other than drag and drop have a 2 GB limit. For more details check Limits for SharePoint Online in ...


7

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 FileCreationInformation: FileCreationInformation fci = new FileCreationInformation(); fci.Content = data; fci.Url = url; Microsoft.SharePoint.Client.File file = list....


6

The "Upload Multiple Documents" command is an ActiveX control. It does not work with Firefox, Chrome, Safari etc. Please see this article for details.


6

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-restriction, so can be used to get round this limit. Here is an example of using URL parameters to bypass this limit: https://tenant-my.sharepoint.com/personal/...


6

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 practice you can reach higher speeds depending on the time of the day. 1 big file will also be processed faster than thousands of small files due to the HTTP-...


5

You can get the ID from newFile, check out SP.File.listItemAllFields You'll need to include the property in your load: clientContext.load(newFile, 'ListItemAllFields'); Then you can access the ID with: newFile.get_listItemAllFields().get_id();


5

You start by setting default values to metadata, the default values for these 30 documents. Then, you upload them and you they have the right metadata. For the second question, you filter these documents and then you go to datasheet view. Then, you open an xls file and you fill the particular metadata in 30 cells. You copy them (ctrl-c), you go to the ...


5

These are the limits imposed by SharePoint which we can't override. Character limit for files and folders These limits apply to files and folders that you add to a synced library folder for uploading to SharePoint. In SharePoint Server 2013, file names can have up to 128 characters. In SharePoint Online, file names can have up to 256 ...


5

Right after you add the file: $item = $spFile.Item; $item["TextOrChoiceColumnInternalName"] = "New Value" $spUser = Get-SPUser -Identity "domain\username" -Web $spSourceWeb; $item["UserFieldInternalName"] = $spUser; $item.SystemUpdate($false); Use SystemUpdate($false) if you don't want to increase the version of the item.. To check in a file use: $spFile....


4

What I have working is the following: Method POST URL http://www.somewhere.com/testsite/_api/web/GetFolderByServerRelativeUrl('/testsite/Shared Documents')/Files/add(url='filename.png',overwrite=true) Header Content-Type: application/octet-stream Accept: application/json;odata=verbose X-RequestDigest: ... Body Raw binary bytes (no JSON) Then in the ...


4

I think the simplest code is this: ClientContext context = new ClientContext("http://MySiteUrl"); using (FileStream fs = new FileStream(@"x:\MyFile.docx", FileMode.Open)) { Microsoft.SharePoint.Client.File.SaveBinaryDirect(context, "/MyLibName/MyFolderName/MyFile.docx", fs, true); } So you just need to provide sub-folder url. References: File....


4

Because you are uploading a file to an Asset Library, right after clicking "upload" you are shown the edit form, in order to fill some metadata that the library requires. Now, the ItemAdded event (which is *asynchronous *) is probably too early to try to change any of the file properties. I tried your code inside the ItemUpdated event and it worked ...


4

I generally perform this tasks by writing either a console application or (more and more) write a PowerShell script. These are then run by a scheduled task (bat-file or the script directly). The advantage of using a PowerShell script is the possibility to do changes and improvements to the scripts directly on the server (but off course in a copied file) ...


4

files over 100 in size is the max ammount you can do, any more files and it will fail. You need to use windows explorer view on the document library to upload in big bulk ammounts! similar answer here: Cannot upload 600 multiple documents in document library EDIT just to make it clear, 100 relates to the ammount of files you want to bulk upload. The max ...


4

What about "open with Explorer" and then drag and drop your structure?


4

You can try by using Infopath. Please try steps given below: On the List tab of the ribbon, Click Customize form To make the attachment field required, we will add a dummy textbox control that will contain the required rule. To do this, add a textbox control and place it before the attachment field Right click on the textbox control, hover on ‘Rules’ and ...


4

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 scenario where I needed to upload files of size greater than 500MB or 1GB and then update the metadata properties. I used PowerShell csom for this. Office Dev ...


4

Found the solution... Here's how I changed my code. private void UploadAttachments(Helper sharePointHelper, IList<HttpPostedFile> postedFileCollection, int itemId) { // Get the list SPList listToUpdate = Helper.GetList(this.BackendListName); SPListItem itemToUpdate = null; // Get the existing item to update itemToUpdate = ...


4

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 activa. Check 'yes' en check 'no' in the advanced settings of every other library on the site. Done!


4

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.microsoft.com/en-us/services/logic-apps/ You will need an azure subscription to create an app


4

Actually I figured out the problem I was having with the original code. I needed to provide the data kwarg and NOT the files kwarg: import requests from requests_ntlm import HttpNtlmAuth session = requests.Session() session.auth = HttpNtlmAuth('DOMAIN\\username','password', session) put_url = 'https://secure.sp.kp.org/teams/scpmgcc/complete%20care/...


4

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 Office 365. For your more information you can visit Office 365 : How SharePoint Online handles List View Threshold The number of items in this list exceeds the ...


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