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

14
votes
5answers
41k 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 ...
7
votes
1answer
9k views

Error when deploying module with GhostableInLibrary files

Here is the module which I want to deploy on the server and the files which should be shown in the Style Library, when deploying them without type ghostale in library, all go good and well, no errors, ...
4
votes
1answer
3k views

Manage File permissions using REST API

Is there a way to manage File permissions (roles) using the REST API? http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx I'm developing an app asking for permission on the fly: ...
4
votes
2answers
9k views

Special Characters in sharepoint 2010 file/folder name?

What special characters are allowed and not allowed in sharepoint file/folder names?
4
votes
1answer
101 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.
4
votes
1answer
2k views

Cannot delete file: “checked out to -1;#”

I am trying to delete a couple of files from a document library, but SharePoint 2013 tells us that "the file is currently checked out or locked for editing by another user". However, when attempting ...
4
votes
1answer
3k views

Why is SPD adding content to my file?

I'm using SPD to edit an HTML file that's in SharePoint (in a subfolder of SiteAssets). Later, I return to the file in SPD to find that the following content has been added to the file (where ...
4
votes
1answer
1k views

Schedule the copy of a document to a network location

I'm looking to copy a document to a network location on a scheduled basis. Anyone have a best practice on how to do that? I thought I could write a work flow, but since I want to copy to a ...
4
votes
2answers
6k views

Copy file using javascript client object model - new version

I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
4
votes
1answer
48 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
624 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 ...
3
votes
3answers
995 views

Two different documents with same name become one

If two users have two different documents but same name, when the second user saves his file in same document library, it overwrites the first user's document and the document gets new version. Is ...
3
votes
2answers
49 views

Clipboard upload SharePoint 2010 multiple files

In our company we are looking for a component what allow copied physical files on disk can be pasted on web browser SharePoint 2010. We have researched about it and everything point to use ...
3
votes
1answer
2k views

How to find which user last visited a site or recently downloaded a file available on SharePoint?

Is there a way to find who visited the site at last and who downloaded file recently in SharePoint? Also can we log who are the users that used/accessed the file? Can anyone provide some guidance on ...
3
votes
0answers
104 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 ...
3
votes
2answers
322 views

Get file size with SharePoint 2010 REST call

Is there a way to get file size with SharePoint 2010 REST (via _vti_bin/ListData.svc) service? The same question about number of items in some folder. I don't see such fields in items corresponding to ...
2
votes
2answers
2k views

How to I programmatically move documents from file system to SharePoint Library

We have a file system, with about 12 folder and 1300 documents in it. The top level has 3 folders, with 3 sub folders each. I am planning to create 3 libraries, with 3 folders in each, and transfer ...
2
votes
3answers
4k views

Get file names in sharepoint 2013 document library

What is the best way to get a list of all the file names in a sharepoint document library with javascript?
2
votes
1answer
291 views

Where did a downloaded file from SharePoint come from? (it's SharePoint path)

Where did a downloaded file from SharePoint come from? When a user clicks a link in SharePoint to open a file which has registered extension to start a program it seems to follow this flow -Browser ...
2
votes
2answers
51 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 ...
2
votes
2answers
7k views

SP 2013 Log Viewer?

does anybody know if there is already a log viewer tool available that can completely read SharePoint 2013 log files? As far as i know the 2010 log viewer tools can't parse the log files of 2013 and i ...
2
votes
1answer
200 views

How to handle Multiple ACL on List Item without performance starve

I'm facing a problem with some items in my List. I want to have an Huge document Library (thousands of files in folders + GB of files) and I want to have different permissions on the files. I want ...
2
votes
1answer
455 views

Performance bottleneck on SharePoint upload method

Trying to eliminate a performance bottleneck on a method doing file and metadata uploads. According to the profiler on a line-by-line of the decompiled code, the majority of time is spent on ...
2
votes
1answer
322 views

Depth of document library folders & files

How can I find out how deep is a document in a document library? Should I simply parse the url of the file and split according to position of slash character? Or is there a better way? Thanks.
2
votes
1answer
586 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 ...
2
votes
1answer
50 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 ...
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 ...
2
votes
1answer
328 views

Get file content, rename that file and after that getting the content again fails

I have one interesting problem, but I don't know why this happend. Generally I: 1) try get content from file (succesful result) 2) then I rename file in sharepoint (succesful result) 3) try get ...
2
votes
1answer
59 views

To acces file from Linux server

We have a Scheduled report that generating from Business Object that is hosted in Linux Server.We required to show this report in share point site.Is there any built in webpart for this. How can we ...
2
votes
2answers
104 views

File size limit for a document in SharePoint is actual file size or file size on disk

The file size upload limit for a document is 50mb by default but is it file size of the document or file size of document on disk.
2
votes
3answers
3k views

Problems adding webparts to a page in the correct order

I would think there's something supersimple I'm missing, but I can't find where I'm going wrong. I have a feature deploying a default.aspx page with two CQWP webparts. I use the AllUsersWebPart ...
2
votes
1answer
37 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 ...
2
votes
0answers
203 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
1answer
255 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
0answers
278 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 ...
2
votes
1answer
110 views

SharePoint removing last byte from uploaded file

I'm facing a very bizzare error in SharePoint. Basically, when I upload a file to SharePoint using a custom form and a normal attachments field control: <SharePoint:AttachmentsField runat="server" ...
2
votes
1answer
448 views

Add file without checking in

I have a question. How can I add a file without checking it in directly? I add file like this: Library.RootFolder.Files.Add(fileName, buffer, overwrite); But when I do that I suppose the file is ...
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
5answers
4k 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, ...
1
vote
1answer
482 views

Uploading multiple files with metadata in SharePoint 2013

Is it possible to upload multiple files with metadata in the document library in SharePoint 2013?
1
vote
1answer
51 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
337 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
63 views

SSL on SharePoint

I am facing some problems on SharePoint. I've got a SharePoint site (let's say HTTP : //intranet.domain.be) We wanted to use this intranet from outside. So we decided to set an Extranet (HTTPS : ...
1
vote
2answers
2k views

Best way to migrate Document Library files to file system

We are looking to migrate all of the files in a SharePoint Site Collection to the local file system. This site collection has multiple sub sites and document libraries, which we would want to migrate ...
1
vote
2answers
1k views

Search Scope returning aspx pages

I have 40 document libraries. I dont want to add exclusion for each document library to exclude "http://pop.abc.com/sc/doclib1/Forms". I tried adding fileextension = aspx exclude and that does not ...
1
vote
2answers
2k views

SharePoint 2010: Saving file to local folder: Access Denied

in SharePoint 2010, I created a DLL that I deploy to the GAC. From this assembly, I try to save a file then access the file I just saved in a temporary location, such as C:\temp. Everytime I try to do ...
1
vote
1answer
1k views

Anyone know how to upload files into a Sharepoint Library using javascript and the SOAP API in SP 2010?

I am writing custom forms in javascript. I do not have access to visual studio. I need to be able to upload a file into a document library with meta data. I've been playing around with the Copy.asmx ...
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
31 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 ...