Tag Info

New answers tagged

1

When uploading to SharePoint I would suggest doing it like this instead. FileStream fileStream = File.OpenRead(documentPath); SPFile file = documentLibrary.Files.Add(destinationSiteUrl + "/" + documentName, fileStream); documentLibrary.Update(); Note that the Add method has more input parameters (Override methods). But works great for all types of files ...


0

I have found the answer to my question and thought I should post the proper solution. The multi-file upload dialogue requires that you change your IIS settings manually in combination with changing your normal SharePoint settings to upload larger files. The default max upload size is 27mb. After you have done your normal settings of changing the max upload ...


3

Sounds like the "Open in Explorer" feature is your best bet. Go to the target library, click the "Library" tab, and click "Open in Explorer" (only works in 32 bit IE). This will make the library look like a regular windows folder, from there you can copy and paste files in.


0

If you use the upload multiple files option, you can drag and drop files from your workstation into the browser and upload them.


0

Solved it thanks to a co-worker (he should get the credits here): Only the Id of the term is not enough. You need to add some extra info: /// <summary> /// Sets the taxonomy field value. /// </summary> /// <param name="item">The item.</param> /// <param name="fieldName">Name of the ...


0

I have test your code and I came to a conclusion: As you are developing your app, you need to declare instance of the site context, each time you make an ajax request, try to use the cross-domain, because you are trying to access or post data out of the APP, if you do not will always get those errors. Developed a trivial solution, follows the code below: ...


0

Data corrupted ? the problem is on fileInput: function ProcessUpload(fileInput) reader.readAsArrayBuffer(fileInput); Some point to reflect: But how can you get the fileinput ? if get fileList(files) give error or corrupt, why this parameter is file, only "FILE". And other, i have used RequestExecutor to upload files and not AJAX with JQUERY. But ...


1

How to create Document and upload it into SharePoint Online library: var fileName = @"SharePoint User Guide.docx"; var targetUrl = "/Shared Documents"; using (var stream = new MemoryStream()) { //1. Create Document using (var document = WordprocessingDocument.Create(stream, WordprocessingDocumentType.Document, true)) { ...



Top 50 recent answers are included