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
0answers
27 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
29 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
35 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
40 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
172 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 ...
1
vote
0answers
193 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
1answer
49 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
1answer
139 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
181 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
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 ...
1
vote
0answers
224 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
798 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
5answers
1k 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
2answers
229 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
2answers
2k 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 centre 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
155 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
3answers
239 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
527 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 ...
0
votes
3answers
218 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
15 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 ...
0
votes
1answer
215 views

Deleted items are still showing on Search result after Full Crawls or incremental Crawls

I am writing a custom file disposition solution for SharePoint 2013. After delete action (see below Delete_Action method), I saw that the selected file is removed. After Full-Crawls or Incremental ...
0
votes
1answer
32 views

Get link to image from asset library

I try to access an asset library in a SharePoint-Hosted App via the REST API. The app is hosted in SharePoint Online. I get the properties of the images (e.g. the title etc). But I do not find a ...
0
votes
1answer
36 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
89 views

Upload a file to folder in a document libary

I have a java program that uploads a file to a document libary and i have a method that creates a folder. I want the file to be uploaded to the folder but i keeps getting uploaded outside the folder. ...
0
votes
1answer
92 views

PS Script copy file in specific folder

Almost same question as here : Power shell script to copy the files and folders with in 2 specific dates I understand the script, which copies entire folders/files from a library to another. But my ...
0
votes
1answer
52 views

How to prevent Files with same Name?

I have a service that takes a file from a library and send it to an already specified folder. This becomes a problem when I'm having files with same names on diferent folders. Lets say that the ...
0
votes
1answer
435 views

How to get excel file from sharepoint library and write to it programmatically

we would like to read an Excel template stored in a SharePoint 2010 library create a new Excel file from it fill the new Excel file with data programmatically we tried already Excel Services but ...
0
votes
1answer
70 views

Find Names that SharePoint doesn't allow before copying to Sharepoint

Is there a way using Windows Explorer to find Names that SharePoint doesn't allow? I have a user I need to move a large number of files from a users Windows Document folder to SharePoint. If there ...
0
votes
1answer
181 views

redirecting when document is closed

I have Excel file eg. template.xlsx in library eg. localhost/Documents/. I made webpart, which creates copy of this file and display this copy (in Office WebApps) to user through hyperlink eg. ...
0
votes
1answer
64 views

Ghostable via Object Model

Is it possible to set a file as Ghostable/GhostableInLibrary via the Server Object Model? I don't see any properties on SPFile that seem to fit the bill. I know you can do this via an XML module, but ...
0
votes
0answers
9 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
23 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
22 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 ...
0
votes
0answers
19 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" ...
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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
23 views

Sharepoint Designer workflow canceled when copying document with long file name to another library

As the title states, I have a SP Designer workflow that copies a document from one library to another. This works great except when the file name of the document being copied exceeds 40 characters or ...
0
votes
0answers
136 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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
13 views

Start survey on file creation

Is it possible to initiate a survey whenever a new document is created in a specified library? I was thinking to create a workflow, but i'm not sure how. Thanks in advance!
0
votes
1answer
43 views

Create file in SharePoint Online without using SharePoint Client Model in C#

In C#, I want to create a file in my SharePoint Online site without using SharePoint client object model. I am trying to use SharePoint REST APIs and List methods. I don't want to use ...
0
votes
0answers
69 views

Opening a SharePoint file using a hyperlink

On a browser-based SharePoint drive, the default file-opening functionality for an macro-enabled Excel file is to open it directly in Excel; no asking for Open/Save As, no intermediary steps; when the ...
0
votes
1answer
100 views

POST a file to Document library using java

How do I make a post request to a document library using java? I'm using the lastest version on this library http://hc.apache.org/ This is my post request right now: itemUrl looks like this: ...
0
votes
0answers
95 views

Upload File as Attachment using SharePoint REST API

I have tried to upload a file to a SharePoint list item, but the server returns an error (400 Bad request): ...
0
votes
0answers
3 views

Controlling filename of local copies of PDF document taken from a SharePoint Online library

I have a library of technical documents in SharePoint Online. People need to be able to attach them to emails to send to potential customers but I want to define the filename that will be applied when ...
0
votes
0answers
21 views

Euro Symbol In SharePoint 2010 Filenames

Some people like to use symbols in filenames when saving documents to SharePoint. From an administrator point of view we would prefer they not do this. I have read through this information: ...
0
votes
1answer
22 views

Can I subfolder within a folder on the same page?

In explorer you can expand the view so you can see subfolders within a folder. Can you do this on a sharepoint page? Ex. TopFolder1 SubfolderA under TopFolder1 SubfolderB under TopFolder1 ...
0
votes
1answer
324 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
150 views

Read file from sharepoint 2013 layouts folder

I want to get the path of a file from _layouts folder in SharePoint 2013, for a stream input. I tried: iTextSharp.text.Document doc = new iTextSharp.text.Document(PageSize.A4); var path = ...