34

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..


11

Believe it or not, you can use Windows net use to map a sharepoint library to a drive letter! Then you can use plain old copy or xcopy or whatever. net use r: https://some.portal.org/documents [password] user:domainName\[username] copy c:\somefile.txt r:\somefile.txt Here is where I found that answer. I've done this, and it works like a charm. You can ...


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-...


6

I had the same need and built my own jQuery widget... you can read more about it here: http://paultavares.wordpress.com/2012/04/28/sharepoint-ui-widgets-upload-and-pickusers/ The zip file has a self-contained demo that demonstrate the use of the upload plugin. Make sure you have all the prerequisites in place. Hope you find a good use for it. Paul.


6

Uploading Documents requires Active X Control so I would recommend you to use Internet Explorer with Active X control installed. The Active X control used for the multi document upload does not exist in a 64-bit version. The 64-bit Office version also does not include the 32-bit version of the active x controls. That's why it is recommend to use the 32-bit ...


6

This is by design, or rather caused by a lack of understanding how this works. In a document library, the basic metadata columns and Word's file properties are linked. You upload a Word file. The Word file does not have the document property "Title" filled in. The "Title" property as stored in the file will update the SharePoint column. Since the Word ...


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

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 ...


5

You can access the content from the ItemAdding event by using Request.Files property of the context. Try something like this : HttpFileCollection files = HttpContext.Current.Request.Files; foreach (String key in files.Keys) { if (collection[key].ContentLength > 0) { Stream stream = files[key].InputStream; ...


5

For this, an understanding of Server Object Model (SSOM) is needed. When you upload a file, you get the reference to the SPFile object. The corresponding SPListItem can be accessed through its Item member $spFile = $folder.Files.Add(... $spFile.Item["SomeColumn"] = "SomeValue" $spFile.Item.Update() Try this complete script : Add-PsSnapin Microsoft....


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

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/...


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....


5

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

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....


4

A possible solution could be: Create a new document library. Create a new permission level by copying an existing level. Eg. Copy the contribute permissions level with the name "Contribute - Only Upload" and remove the permission to update / delete documents and any other specific permission you do not wish to give. Create unique permissions on that ...


4

Each Web Application By default have 50MB for one time attachment to be uploaded. You can modify it from: Central Admin -> Manage Application -> Select your web application -> General Setting -> Set Max Upload Size If file size is too large then you should also update executionTimeOut (Increase this time from IIS Setting) value and ConnectionTimeout (...


4

The order of the events if pretty clear (ItemAdding – ItemAdded – ItemUpdating – ItemUpdated, and others e.g. when you delete, emailReceived, WorkflowStarted, etc.), but how many there are triggered could differ depending on the application (e.g. WebUI, Word document Save as, and more important - custom implementations!). E.g. while working on properties ...


4

In my experience if you update the quota template it does not get applied to the sites that already use it. Through Central Administration apply another quota template to the site then reapply the previous one. If you have 100s or 1000s of sites to update you can use the following PowerShell. Hence, If you want to update the same template just set $...


4

It depends! SharePoint can easily handle that amount of data and that amount of files. But there is no "magic recipie" that you just apply to SharePoint and then upload all that data. You need to think of how these documents are going to be used (read/write scenarios), you should organize them in Site Collections and sites (and with that split out databases,...


4

You can use an HTTP PUT request to put document in the library. The code may be (adapt regarding your needs) : Uri destUri = new Uri("http://server/sites/mysite/myweb/mylibrary/document.doc"); using(FileStream inStream = File.OpenRead(@"c:\doc\document.doc")) { WebRequest req = WebRequest.Create(destUri); req.Method = "PUT"; req.Credentials = ...


4

There are custom events for incoming emails, have you looked for "Email events"? If you add such Event Receiver you might have to handle the item correctly as well, or else it will not be inserted properly. Like this: public class OnEmail : SPEmailEventReceiver { public override void EmailReceived(SPList list, SPEmailMessage emailMessage, String ...


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