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

1
vote
1answer
84 views

How to add XML file with event reciver

I am creating a event reciver for the list, for that i need to get some data from XML file. currently i have placed the xml file in my local system. Actually where do i need to add the xml file. Is ...
1
vote
1answer
36 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
27 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
79 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
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 ...
1
vote
1answer
214 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 ...
1
vote
1answer
201 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 ...
1
vote
1answer
366 views

Upload file using JS and REST. Specify content type

I can upload file to SharePoint library using JS and REST. The content type of added file is as library default content type. How can i specify file content type when uploading file? Thanks!
1
vote
1answer
843 views

Deploy file to image library with visual studio solution

developing a visual Studio solution having an own picture library called Slides. With the deployment the new picture library should contain some default files. Is this possible and how to achieve this?...
1
vote
1answer
482 views

Upload file in sharepoint document library using ECMA script

I Want to upload a file in document library using Client object model with ECMA script Any help will be appreciated
1
vote
2answers
104 views

SharePoint as a File Manager

I'm a business user and trying to find out if Sharepoint is the right tool to manage our files. Our files consists of excel spreadsheets and Word documents. They include policies, procedures, and ...
1
vote
2answers
2k views

Content type ID on a file different from actual content type ID?

Moving from "a sharepoint user" to "a sharepoint power user", I now am facing the world of Powershell and more. One thing that really puzzles me is the following. Ok, so I have a document library ...
1
vote
1answer
781 views

What is the reason to have a minimum default value for the “executionTimeout” attribute?

If SharePoint Upload time limit can be increased as we wish, why the default is not set to be Max? What is the reason to have a minimum default value for the attribute "executionTimeout"? <...
1
vote
2answers
894 views

Issue in versioning and metadata with recent Office Files

I have a web service that shows a sort of CRUD of document (with metadata) for other application.. I have some document libraries in which users can upload (via WS) documents with metadatas. For ...
1
vote
1answer
330 views

SharePoint file gets stored in external filesystem: manually update file location?

Suppose I have a Sharepoint Document Library that's read-only. I'm planning on writing a custom solution that will enable users to copy a file to remote file storage. How do I change the file to refer ...
1
vote
0answers
16 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 ...
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 ...
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
58 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 ...
1
vote
0answers
61 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?
1
vote
1answer
432 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 ...
1
vote
0answers
152 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. https:...
1
vote
1answer
561 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....
1
vote
2answers
342 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: processSheet.SaveBinary(...
1
vote
1answer
143 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 ...
1
vote
1answer
186 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
784 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/...
1
vote
0answers
18 views

SPFile.LockId property some clarification

SPFile.LockId property: whenever somebody checked out file it will be locked automatically, is that correct? then what will be the value of LockId property at that time? secondly, what is the default ...
1
vote
1answer
78 views

Using SharePoint Workflow to call a Java class

Is it possible to create a workflow which call a Java class? My main goal is to select a file and press a button in SharePoint document library which transfers this file to a Java class where I can ...
1
vote
1answer
54 views

Sharepoint 2013 App Restrict File extension

I am using an App on my site that is kind of a list and allow you to select a file. Is there a way to restrict the file extension that the user can select? Can I do a receiver(event handler) to ...
1
vote
0answers
2k views

Read excel file from sharepoint document library in office 365 programmatically

I have one excel file uploaded in document library of office 365 site.I want to read this excel file using c# as we read in farm solution using following code. using (SPSite site = new ...
1
vote
1answer
181 views

Create File in sharepoint mapped directory

I am creating a farm solution, I want to create zip file from 2 or more files taken from sharepoint library. I want to temporarily save these files in my mapped folder ("Layout/MyFolder"). and allow ...
1
vote
1answer
265 views

Document locked by SharePoint

I am trying to read values from document after that the file was edited in Office Web Apps. Problem is, that this document is locked by Sharepoint (SPFile.LockType - Shared). I tried to Check Out and ...
1
vote
1answer
698 views

How to create custom site column with type File

Reading MSDN documentation I see that we can define a type File for custom columns. When I define the site column in Elements.xml using element and type file, the column does not get rendered. THe ...
1
vote
2answers
2k views

File not found on _layouts/user.aspx? Any ideas why?

Does anyone have any idea what file may be missing? //log System.IO.FileNotFoundException: Unable to find the specified file. at Microsoft.SharePoint.ApplicationPages.WebAdminPageBase....
1
vote
0answers
258 views

“File not found” when attaching file to list item

I'm trying to write a section of code that lets users attach files to list items. The goal is to allow any user to be on the SP site and upload any "legal" file from their machine or shared drives to ...
1
vote
1answer
1k views

Can't download document from library

We have document library which contains about 2,5k SCORM packages (about 100GB total) for teachers. This files are relatively big and in *.zip format, so we decided to enable RBS on content databse ...
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 ...
0
votes
1answer
374 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
2answers
328 views

What's the difference between “New Document” and “Upload Document”?

I have a library. In the Files tab in the ribbon bar, there are these two buttons, "New Document" and "Upload Document". Both have exactly the same behavior: opening a modal dialog where I can upload ...
0
votes
1answer
159 views

XML Dictionary - how to provision with feature and read it?

I have an visual webpart and I need to populate drop down with content extracted from xml file. How can I provision that XML file with feature and then how can I access it from my codebehind to be ...
0
votes
1answer
51 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
121 views

Extract Site Collection Properties to File

Is there a way to extract all the Site Collection properties to a file using SharePoint Management Shell
0
votes
1answer
3k views

Cannot invoke HTTP DAV request. There is a pending query during OpenBinaryDirect

I've to move some items from one document library to an other one in a different site. I use object client model to do this My issue is having an exception while i'm trying to open the file and here ...
0
votes
3answers
421 views

Best Backup Solution for SharePoint 2013 Possibly with DPM

We are planning to move our file share to SharePoint. Currently we use DPM to backup the file server, but I know the content of SharePoint is found in content databases. So my question is what is the ...
0
votes
2answers
4k views

SharePoint 2010: Unable to open .mht files in browser. Prompts to save .mht to disk

I have a SharePoint 2010 environment where I am unable to open .mht files in my browser. Every time reference the .mht file using a page viewer web part or a content editor web part (with iframe) I am ...
0
votes
1answer
711 views

How to change file in sharepoint library?

I have sharepoint documents library and I have wcf service from where i should download new version of document file on button click. So i got next method: public void UpdateFile(SPListItem item,...
0
votes
3answers
237 views

Deploying to style library / site pages from a web application scoped feature

I am writing a web application-scoped feature which will provision a site collection and a small number of sites. The problem is that I have my own style files (.js, .css, images) and even some ...
0
votes
1answer
189 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
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 ...