A computer file is a digital resource for storing information, which is available to a computer program and is usually based on some kind of durable storage.

learn more… | top users | synonyms

5
votes
0answers
42 views

Get MIME type from RESTful API Call

I am currently using Sharepoint 2013 and am using this URI to get some basic metadata about the documents under the document directory: ...
1
vote
0answers
20 views

Loading Documents

Is it possible to stop files being loaded to Sharepoint unless they are to a set naming convention. So for example if it was a report it would be 160517Report and what ever the extension is. The ...
2
votes
1answer
48 views

How do you create a new document in a Sharepoint Document library based on an existing content type using REST?

I have a document library with a content type called 'Letter' attached to it. The 'Letter' content type has a MS Word document template attached to it. I would like to know how, using REST, to create ...
0
votes
1answer
32 views

Attaching a file to a list item using CSOM

I'm attempting to use a console application to attach a file to a list item I have created in code. Here's what I have: var attachmentInfo = new AttachmentCreationInformation(); // ...
0
votes
1answer
21 views

Error While create REST request for create file

I set the headers like following: Headers: accept: application/json;odata=verbose Content-Type: application/json;odata=verbose Authorization Bearer xxxxxxxxxxxxxxxxxxxx { ...
1
vote
1answer
53 views

Can I get Last write time of a file in SharePoint via Powershell?

Is it possible to get when was the last WRITE time of a file in a document library by using Powershell? $url = "http://myserver/sites/mysite/shared%20documents/myfile.xlsx" $webclient = New-Object ...
1
vote
1answer
33 views

Using get_name() with attachment files in a list

I am trying to retrieve the names of two attached files that a single item may contain in a list I'm not sure how this function works, but here is what I have so far var PicName1 = ''; var PicName2 ...
1
vote
2answers
25 views

Getting Multiple Attachments URL's

I am trying to obtain the full URL of every item's attachments in a sharepoint list Here is what I am specifically trying to obtain, in bold: ...
1
vote
1answer
50 views

Error : The file has been modified by SHAREPOINT/system

I am creating .docx file using template of SharePoint Library and uploading it to the library. But I am facing an error while CheckOut(). Below is my code. public void UpdateAndCreateFile(SPWeb web) ...
1
vote
1answer
15 views

Modify Column View

I have a library containing folders, sub-folders and PDF files. Is it possible to display a column only visible for PDF files? I don't want this column to be visible when only the folders are ...
1
vote
2answers
40 views

How to delete files from “Manage files which have no checked in version” using powershell

I tried to delete custom content type from Pages library but got an exception "content type is still in use". The I get to know that files should also be deleted from "Manage files which have no ...
3
votes
0answers
110 views

Sharepoint in Explorer-View can't display images “because the file is empty”

I am administrating a SQL Server 2014 for our Sharepoint 2013. Currently users are facing the following issue: Using the Explorer View, some images randomly (at least I can't find a pattern until ...
0
votes
1answer
42 views

SPCheckinType.OverwriteCheckIn in Poweshell

How we can OverwriteCheckIn in Powershell? Please correct second parameter? $ListItems[$i].File.CheckIn("Checkin automatically",SPCheckinType.OverwriteCheckIn) // second parameter seems wrong
0
votes
1answer
31 views

SharePoint 2013 - Opening files while Web App is in Strict Mode

My organization requires that SharePoint be in Strict mode for "Browser File Handling". However, there are a few file types that are allowed to be open directly. Is there a command that I can run ...
1
vote
0answers
48 views

Sharepoint 2013 DFS

Im running a Sharepoint 2013 server and got a fileserver with different DFS shares. Are there any way for me to map one of the DFS shares into a sharepoint site?
0
votes
1answer
114 views

Why the “401 Unauthorized” when using Call HTTP Web Service against a text file?

I have a mydata.txt file under SiteAssets whose contents are JSON (SharePoint prevented my use of a .json extension). I shared the file with Everyone. I can make a getJSON request with jQuery in the ...
0
votes
0answers
27 views

Difference between GetFileByServerRelativeUrl and GetFolderBy… when moving file/folder

I've been trying to create a method that would move a file or a folder. To get the file that I want to move, I am using Web.GetFileByServerRelativeUrl and then on the returned file I invoke MoveTo ...
0
votes
1answer
49 views

How to set read-only attribute on file

I have .docx file on sharepoint which should be read only but I do not know how to set this attribute in my sharepoint application in c# code behind. How to set read-only attribute on file in code ...
4
votes
1answer
57 views

List out all files inside all folders of Document library using Server object model

SPFileCollection foler = pdflibrary.RootFolder.Files; Above code line will only give files outside folder. How can get all files inside and outside folder into SPFileCollection. What is the easiest ...
4
votes
1answer
104 views

Connect Windows File Share with SharePoint Foundation 2013

Is it possible that we can connection File Share with SharePoint Foundation 2013? So that we can view files and folders on SharePoint.
0
votes
1answer
43 views

Auto Generate flat file (comma separated)

My Requirement is as below I have one share point list(L1) in SharePoint 2013. When I Update the list item(one record in list) , I should Auto Generate flat file (comma separated) with file content as ...
1
vote
1answer
293 views

How to correctly include file in Powershell?

How do I correctly perform includes in Powershell? I have this script: & .\config.ps1 & .\scripts\functions.ps1 Write-Host -f yellow "Saving root site collection" backupSiteCollection ...
0
votes
1answer
269 views

Include JS Files in JS Link File

Is there a way to include another .JS file into a JSLink file? I have made mini framework to render list views which I want to source out in a seperate file and then add a normal JSLink file for ...
0
votes
0answers
17 views

Trying to Edit a document and access is denied SharePoint 2013

I’m trying to edit a PPT presentation on SharePoint 2013, but when I click “edit in PPT” I am asked to logon, which is unusual. I enter my credentials and get an error that my UN or PW are incorrect. ...
0
votes
0answers
29 views

Office 365 SharePoint - Individual File Sharing

I have been debating with my internal team whether to allow the end user to share individual files or not and have also been talking about the potential problem which may arise due to giving each file ...
0
votes
1answer
45 views

Arithmetic Overflow

I have to report weekly on the number of documents being stored in one of our document libraries. My manager wants the headline figures: Total number of files stored Average file size Total file ...
0
votes
1answer
272 views

CAML query for 'FileRef' does not return relative path

I'm having trouble retrieving the relative path of a file using CAML: ...
2
votes
2answers
59 views

Cannot write file in a folder

I cannot write a file into a folder through some code in a VisualWebPart in a Sharepoint 2013 solution. I've given write permission to c:\myfolder to Everyone. The code I use to write is the ...
0
votes
1answer
49 views

Recursively search for files based on metadata

I'm working on a SharePoint instance which consists of one site and 4 sub-sites. Each one of those sub-sites contains multiple files, separated into multiple folders. What I'm trying to do is write a ...
1
vote
2answers
800 views

With REST recursively retrieve file and folder directory structure

I have a site which is running under SharePoint 2013. Via REST I am trying to retrieve the file and folder directory for that site. There are several similar questions on this site related to ...
0
votes
0answers
104 views

automatic uploading to sharepoint intranet website using spfilezilla

I am using spfilezilla to upload files to my documents library on my sharepoint site. I was wondering if anyone knows how i can automatically schedule uploads with this tool or if there is a way to ...
0
votes
0answers
17 views

Creating a network of files that can reference eachother

Sharepoint novice here (readas: extreme novice) Is there a way to make it so that multiple files can be dependent on eachother? IE: If there is a master list excel file with multiple sheets worth of ...
2
votes
0answers
227 views

Copying attachments using JavaScript (JSOM or REST)

I've been able to copy documents in document libraries using the "CopyTo" method: https://msdn.microsoft.com/en-us/library/office/dn450841.aspx#bk_FileCopyTo I'm not understanding how I can apply ...
1
vote
1answer
336 views

Access Old Version File objects with CSOM

I created a WCF service that uses Client-side Object Model (CSOM) to query file information from a SP Document Library. I need to create a List<File> with all the files associated with all the ...
2
votes
1answer
675 views

sharepoint rest api, serverRelativeUrl, extended properties on all files

Is there a way to write the service call in example A to get the file properties in example B? Currently the folder isn't a named list. If it were would that help? This question is similar to: Is it ...
0
votes
0answers
26 views

How To Use Document ID to Auto Assign Directory

So, I am using a SharePoint site with various folders, documents, etc, the norm, and I currently have to tell SharePoint what Task Order Folder that the file belongs to, but I should have to because I ...
0
votes
1answer
82 views

Extract text/string from file name

Is it possible to extract parts of a file name and put the that information into a column? So for example file is called 2014-01-2-R00744.pdf. So can I using a workflow extract the 2014 part of the ...
1
vote
1answer
194 views

Retrieving SharePoint Item ID - Powershell

I am creating a script that looks through our WebApp and gets all Site Collections, Sub-Sites and list all the documents with certain pieces of information regarding each item. I have to retrieve ...
0
votes
1answer
57 views

SharePoint Designer 2013 - Imported Files are not viewable but says they exist

I am the site Collection Administrator on 40 different Site Collections. I have created 3 new Page Layouts that I would like to deploy to all sites and I have imported them to a test Site Collection ...
1
vote
0answers
136 views

Endpoint for Recycle Bin using REST API

I have the following endpoint which works fine if I use the file/folder id or 'root' instead of 'RecycleBin', but I just can't seem to get access to the recycle bin using this type of endpoint. ...
1
vote
1answer
445 views

REST call to move a file/folder to another location

I am trying to move a file/folder from one location to another using a REST call, but I am getting the following error: { error: { code: "-1, ...
1
vote
2answers
287 views

How to use Microsoft.SharePoint.Client.File.SaveBinary method?

I want to save a file from document library to local drive. I am using the Client Object model approach model in development. The following is the code that I use: ...
1
vote
1answer
366 views

Save Excel file locally using client object model and C#

I have a scenario where I have been able to get the file that I want to download using a CAML query. I am using client object model approach. I need to save this file locally. Please guide how can I ...
1
vote
1answer
129 views

How to add a hyperlink which opens a text file into a folder of a document Library

I've a requirement to add a link to a txt file in a folder of a document library such that user who want to upload content to the folder may click on the link which will open the file in a separate ...
2
votes
1answer
55 views

Can't Open file binary in SharePoint.Client

This bit of code works for me: Microsoft.SharePoint.Client.File file = ctx.Web.GetFileByServerRelativeUrl(@"/Shared%20Documents/Email%20Body.html"); var _stream = file.OpenBinaryStream(); The ...
0
votes
0answers
37 views

Not getting [Object File] from a File Input HTML Control using JQuery in WebPart Custom Page

I am Using SharePoint Designer 2010 I have a file input control and a button as below: <input type="file" name="Resume" id="upload"></input> <input type="button" id="btnSave" ...
2
votes
1answer
43 views

Populating a site template with dynamically updating files

I have created a site that I want to make into a template and deploy a copy of roughly once a week. I want each new site to contain a standard set of libraries and folders (I have those - fine so ...
0
votes
0answers
7 views

Give a single map on a site specific settings to open the containing documents in the browser?

My work uses SharePoint, and I can upload files to some parts of the website. I 'own' certain folders. The general site settings are to open documents with the default file readers (i.e., outside of ...
1
vote
1answer
178 views

Put a file in a library with a File-Upload on sharepoint designer

I work on SharePoint designer 2013 and I try to put a file(The file can be an image, a text file, a powerPoint, a videos or any type of file) in a library with a FileUpload. I didn't find any code ...
1
vote
1answer
182 views

Rename file with SOAP in SharePoint 2010

I use SOAP in native C++ application - no C#, no Java Script. When renaming list item (including file) via REST, it's possible to alter Name field. But in case of using SOAP Lists.asmx UpdateListItems ...