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

4
votes
1answer
650 views

Uploading '.xlsx' or '.docx' to SharePoint 2007 from ASP.NET app causing file 'corruption'

I have an ASP.NET application wrapped in SharePoint 2007 website. Within this application I allow users to create requests and they can also upload supporting files for the request. When a user ...
1
vote
1answer
846 views

Docsethomepage.aspx - File Not Found

I migrate a site collection from version 2010 to the 2013. I have a list with a custom content type. (document set). When I try to open a document with the url mysite/listName/Forms/myContentType/...
3
votes
1answer
28 views

File wont checkIn via rest

I created a new file in a document library. The file will usually overwrite an existing file and for that process to happen, the file will need to be checked out. The problem is when I call the ...
0
votes
1answer
26 views

How to copy all files from folders and subfolders into one folder using PowerShell script?

I have to copy all files to single location and add prefix to all files while copying to new root folder. For example, say that I have the following folder hierarchy: Folder1 File1 ...
0
votes
0answers
5 views

how to iterate through folders, sub folders and get file size of document library's only in power shell?

How to find the size of all documents in sharepoint 2013 I'm trying to iterate through folders and sub folders of document library only to get file size. But I'm getting folder size instead of file ...
0
votes
1answer
34 views

Create File using SharePoint REST API call But It couldn't edit or view

url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Document')/Files/add(url='abc.docx',overwrite=true), method: POST, body: "This is my doc", Headers: Authorization: "Bearer " + ...
1
vote
1answer
34 views

Cannot convert the “Microsoft.SharePoint.Client.ClientResult`1[System.IO.Stream]” to type “System.IO.Stream”

I am copying a file. I do not have it on the local machine. Method .CopyTo() and .Move() is out of question. Environment is SharePoint Online. The file is loaded correctly and I access its properties,...
1
vote
2answers
16 views

How to move a file stored in a folder of a document library into the root of that document library (Sharepoint 2013)?

There are multiple articles, tutorials, and videos on the web that show how to move a file into a folder. However I cannot find references for the opposite scenario. How to move a file located in a ...
0
votes
1answer
620 views

How to detect a new file in a shared folder?

I'm looking for a way to programmatically detect the arrival of a file in a shared folder. So far, the best I have is some kind of Windows service that contains a FileSystemWatcher; that service, in ...
1
vote
0answers
23 views

OpenBinaryDirect returns a null stream

I have the following code to download a file by using its absolute path but the problem is that the stream I get is System.Io.Stream.NullStream. If I modify the path I get the error: "The ...
4
votes
1answer
94 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: /_api/web/Lists/GetByTitle('Documents')/Items?$select=...
0
votes
2answers
35 views

Disk space usage of file versions

Let's say I have checked in a 10 MB file to a document library. Now I change a single byte in the file and check in again. How much disk space does the file use in the content database? ~20 MB or ...
2
votes
1answer
331 views

Copy file to another folder with REST API

I'm trying to copy a file located in user's personal folder (OneDrive Pro) using REST API. The resulting link seems to become too long and server returns 400 BadRequest: The length of the URL for ...
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 ...
0
votes
2answers
3k views

Crawl file server to add files to search result

I'm trying to add some directories from my file server to be included in the Search Center in SharePoint 2013. I have added a new content source to be crawled and stated it is a file server. I filled ...
2
votes
1answer
83 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
42 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
23 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 { "apiUrl":"https://xxx....
15
votes
5answers
46k views

How to get a file using SharePoint Client Object Model with only an absolute url at hand?

We have a database with absolute (full) links to SharePoint files. If a user wants to download or get checkoutstatus information about the file, our program needs lookup that information in SharePoint....
0
votes
2answers
864 views

Encrypting files and documents in Sharepoint 2013

I want to host confidential data on Sharepoint 2013 and would like to encrypt these data on a file level. There is already a Transparent Data Encryption (TDE) feature available for Sharepoint but it ...
1
vote
1answer
57 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
38 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
29 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: site.sharepoint.com/sites/mysite/Lists/ContactList/...
1
vote
1answer
102 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
81 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
122 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 now)...
0
votes
1answer
56 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
35 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 ...
4
votes
1answer
83 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 ...
1
vote
0answers
69 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
249 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
42 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 ...
1
vote
5answers
5k views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
0
votes
1answer
827 views

Get File Url from a Lookup Column REST API

I have a lookup column that correlates to a background image in my presentation layer. Is it possible to expose the URL to the actual file via the $expand mechanism using REST? Example REST URI ...
0
votes
1answer
50 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 ...
1
vote
1answer
190 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
623 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, Microsoft.SharePoint.Client....
0
votes
1answer
448 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 ...
4
votes
1answer
116 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
49 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
607 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
0answers
18 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
51 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
360 views

CAML query for 'FileRef' does not return relative path

I'm having trouble retrieving the relative path of a file using CAML: http://[siteURL]/_api/web/lists/GetByTitle('test')/GetItems(query=@v1)?@v1={"ViewXml":"<View><ViewFields><FieldRef%...
2
votes
2answers
70 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
64 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
1k 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
119 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 ...