New answers tagged

0

There are ways to disable multiple document upload option using SPD after modifying in masterpage and applying some of the javascript code that including hide or delete multiple upload option. Please go through this article How to Disable Multiple File Upload in SharePoint and let me know is it the right approach for you?.


0

Thank you for this thread. I was able to to resolve my issue by inserting the following in a content editor web part on my page where I had ben using Bootstrap. I had to match the relatedWP to the specific webpart. <div id="ms-dnd-dropbox" class="ms-dnd-dropbox" style="display: none;" relatedWP="WebPartWPQ6"></div>


0

public class ReadExcel { #region readExcel public static DataTable ReadData(Stream theStream, string sheetName) { DataTable dt = new DataTable(); try { using (SpreadsheetDocument spreadSheetDocument = SpreadsheetDocument.Open(theStream, false)) { WorkbookPart workbookPart = ...


0

The below example demonstrates how to upload a file using SharePoint REST client for PHP: $authCtx = new AuthenticationContext($webUrl); $authCtx->acquireTokenForUser($userName,$password); $ctx = new ClientContext($webUrl,$authCtx); $localFilePath = "./data/user guide.docx"; $targetFileUrl = "Documents/user guide.docx"; $fileContent = ...


1

Check below things first Check that your colleague has checked-in the documents. After that you will get all the documents accessible. Check the permission of yourself in document library (although you said you are an administrator).


0

Honestly, I don't completely understand what you're trying to do. But generally speaking, I dislike attachments and urge people to use lookup fields instead. The problem with attachments is that they are not retrievable through search, contents aren't indexed, do not get any decent SharePoint document management features whatsoever (Versioning, recycle bin, ...


1

using (ClientContext context = new ClientContext("http://SharepointURL/")) { try { Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); newFile.Content = System.IO.File.ReadAllBytes(@"C:\test.txt"); newFile.Url = "test.txt"; List docs = web.Lists.GetByTitle("CustomList"); ...


0

You can write up a simple workflow on Item Creation and Item Updation to set the Name field to be equal to Title. Example in SP Designer Workflow: Set Current Item:Name to Current Item:Title


1

I dont think there is a universal way. From my experience there is no simple way to enfore this but you might be able to via workflows. You can add required to the columns which will force the user to in certian upload scenarios, mainly when saving direct from the document to a location or when saving after opening from SharePoint.


0

It won't work with default credentials because application pool identity is not there in normal context. If you check the result of System.Security.Principal.WindowsIdentity.GetCurrent() method, you'll see it returns IUSR instead. If you want to execute code with app pool credentials, you need to elevate permissions using ...


0

Set the authentication mode as shown below context.AuthenticationMode = ClientAuthenticationMode.Default; Also make sure the application pool account under which the service is hosted in IIS has proper access to SharePoint document library.


0

If I am not wrong, you are trying to check out the file before uploading the file itself. Try this first. fileCreationInformation.Url = list.RootFolder.ServerRelativeUrl + "/" + company + "/" + Year + "/" + quarter + "/" + document.Name; Microsoft.SharePoint.Client.File uploadFile = quarterFolder.Files.Add(fileCreationInformation); ...



Top 50 recent answers are included