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
59 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
640 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 ...
2
votes
1answer
269 views

Sharepoint 2013 REST API with user without admin rights

I'm developing a web application which integrate with the sharepoint (multi-tenant). The app is supposed to upload and download files to the sharepoint. I'm using the Sharepoint 2013 REST and trying ...
2
votes
1answer
296 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
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
1answer
340 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
1answer
132 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
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
699 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
1answer
77 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
257 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 ...
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 { ...
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 ...
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 ...
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 ...
0
votes
1answer
67 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
1answer
23 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
489 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 = ...
0
votes
1answer
127 views

Read, Write, CheckIn/Out files in SharePoint 2010 with REST

Is there a way to Read, Write, CheckIn/Out files in SharePoint 2010 with REST? It is possible with SOAP but transferring base64-encoded seems to be inefficient. Thanks
0
votes
1answer
52 views

How to send file to SharePoint from another application?

I know how to upload files to SharePoint programmatically from CSOM but I need to do it from an application that I can't modify, this application only gives me the option of establishing a url where ...
0
votes
1answer
69 views

How to make File Upload Control a conditionally required field?

I have four optional buttons. The file or amortization is required to be uploaded only if either Loan (One of the four option buttons) is selected or Bond is selected. Another words user must upload ...
0
votes
1answer
94 views

FileShare Sync SharePoint Foundation 2013

we have SP 2013 foundation it uses Forms authentication. We have a file server on the same internal network and I want to sync files between this server and our SP 2013 server. real time if we can or ...
0
votes
1answer
75 views

Sharepoint automatically checking out document to user when opened

I'd like to start by saying I have very little sharepoint knowledge, I'm just helping out a friend ... Basically, we have 2 users, one of which is the owner of a file on a sharepoint site (first ...
0
votes
1answer
582 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 ...
0
votes
1answer
151 views

SharePoint sharing files on local existing file systems

Hi I want to share quite large-sized files on SharePoint but the quota space is too limited. I was wondering is there any method or free 3rd party tools that allows the mapping of files in Shared ...
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: ...
3
votes
0answers
111 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 ...
2
votes
0answers
230 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 ...
2
votes
0answers
116 views

SharePoint modifes and corrupts uploaded files

When I uploaded a file to SharePoint it gets modified, which is apparently intended for office files according to this Blog. This only happens to .dwt files which also seem to be the extension for ...
2
votes
0answers
89 views

Cross Browser Local File Viewer in Content Editor Web Part

Is there a way to use the content editor web part (in SharePoint 2010 standard edition) to view files on a network (given an absolute path using and iframe) that will work in IE, FireFox, Chrome, ...
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
0answers
49 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
0answers
138 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
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
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
0answers
256 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 ...
0
votes
0answers
28 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
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
0answers
106 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 ...
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
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" ...
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
0answers
114 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
0answers
2k views

2013: load custom “clienttemplates.js” file

Requirement: I want to replace the file clienttemplates.js found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS with a custom version. I couldn't find the ...
0
votes
0answers
77 views

Open a sharepoint document from list item

I have created a list with SharePoint. In this list, i have a column named "Link" which contains a link to a document from my SharePoint library. I want to open this document in edit mode, but now ...
0
votes
0answers
2k views

Sharepoint 2013 deploying files using a module to subsites

I wanted to deploy files to lists already created. This works but only for the top level site. I used the following elements.xml **<?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
0answers
346 views

Network Can't see a Sharepoint Document Library

I inherited a script that moves documents from a web server (unix) to a sharepoint document library via robocopy. The script looks like this: net use v: \\webserver\share /user:u p robocopy v:\ ...