Questions tagged [document-library]

Use a document library to store, organize, sync, and share documents with people. You can use co-authoring, versioning, and check out to work on documents together. With your documents in one place.

Filter by
Sorted by
Tagged with
90
votes
16answers
24k views

CSS Files in _Layouts or Document Library?

There's been a lively conversation (such as it can be in 140 chars) lately about whether it is better to put CSS files on the disk in the _layouts folder or to store them in a Document Library in the ...
89
votes
14answers
312k views

How do I enable “Open in Explorer”?

I have full control over my SharePoint site. When I click on my document library and then click the "Library" tab on the ribbon, I see an option for "Open with Explorer" but it is disabled. The ...
31
votes
4answers
68k views

Create link to “new item” form

I have a sharepoint docuemnt library and i'd like to create a link on my homepage that will launch a new item form associated to my list. Does anyone know what the url would be if my document library ...
23
votes
6answers
73k views

Clearing short term file lock

I've come up against a problem I've been unable to solve, and based on my 2 days of Binging around, I've yet to find a solution to fix the problem the same with a slew of others. I've got several ...
22
votes
9answers
23k views

How can I disable the Document Library drag and drop function?

Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it. We're using SharePoint online and I have amended the SharePoint out-of-the-box document ...
21
votes
5answers
21k views

How to restrict a document library to a specific file type (extension)?

I have a SharePoint intranet site where I need to allow users to upload certain documents. These documents need to be only PDF files for example. What is the simplest way to restrict the document ...
19
votes
3answers
53k views

SharePoint 2013 - Change URL of document library

I created a Document Library called Resource Documents. Would it be possible for us to set a friendly URL on this library so that files may be read with the following URL pattern... http://site/my-...
17
votes
3answers
448 views

Lists or Managed meta data

I'm implementing a document library and trying to distinguish the use of managed meta data or lists with lookup values. The first one can be centrally defined, gives clarity of relationships and is ...
16
votes
4answers
42k views

Listing all checked out files

As a site administrator I have to list all checked out files in the site collection. Looking at the DB is looks like the tp_CheckoutUserId field in AllUserData might be a key to this query. Is it ...
15
votes
5answers
14k views

Add Document Library XsltListViewWebPart using CSOM or web services

How to add a document library XsltListViewWebPart (or list view web part) on page using CSOM with SP2013 when we do not want to use the in-built view with "Name, Modified, Modified By" fields? Custom ...
14
votes
4answers
52k views

Link to “Download a Copy” from a Document Library

I have a Document Library with some exported webparts (.dwp). When I embed a hyperlink somewhere to the document, it opens in the browser (IE8). I cannot change any settings on the site collection ...
14
votes
6answers
22k views

Creating Nested Folders via Client Object Model

I'm trying to create nested folders in my document library so it looks like this: http://site/PublicDocuments/Folder1/Folder2/Folder3/ The document library "Public Documents" exists but none of the ...
14
votes
3answers
21k views

Add group to Library permissions using powershell

I have written a script that created a document library called "Audit Logs" for every site collection in our environment. I then wanted to ensure that only Site Collection administrators and the ...
12
votes
2answers
22k views

How to display more than 3 views in document library?

I have 4 views "All Documents" "Agreements" "Permits" "Deeds" I want to display all 4 of them above my document library but only 3 get displayed and the fourth gets placed in the "..." section. I ...
12
votes
5answers
90k views

The file “[file name]” is checked out or locked for editing even though no one has it open

I get the following error when I try to check out a document from a document library in SharePoint that has been recently edited: The file "[file name]" is checked out or locked for editing by "[...
12
votes
4answers
45k views

Overcoming ~5000 File Document Library Limits

Microsoft technet states that document libraries have a file limit of 30 million items: http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#ListLibrary In practice, numerous ...
12
votes
1answer
3k views

“Incoming e-mail settings” hidden from custom document library

Very simple set-up: Visual Studio --> Add New Item --> List Definition. Type: Document Library. Besides that - no changes. Deploy. Result: As you can see: No "configure incoming e-mail settings" ...
12
votes
3answers
6k views

How to enable the “From SharePoint” link when inserting a link in a blog post?

When I create a new post in a Blog website, I would like to insert documents by picking them directly from my SharePoint libraries. Actually there is an option for that but it appears disabled even I ...
11
votes
2answers
3k views

Add huge number of folders

Is there any tips for programatically adding and managing the huge number of folders in document library? In my scenario, a document library has 3 hierarchies and each hierarchies contains 50 - 100 ...
11
votes
3answers
4k views

Why doesn't clicking New Document save back to the document library?

I'm watching a course on SharePoint Foundation 2010 Fundamentals. In it a document library is created a couple of columns are added, then when New Document is selected from the ribbon, Office opens ...
11
votes
3answers
15k views

Show folders in document library that have a filter view

I am using SharePoint 2010 I have a document library with a view that Filter items only when a particular Column is true. The problem now is that when I have a filter in my view the folders in my ...
11
votes
3answers
16k views

Download and delete documents using Powershell

I'm looking to build a Powershell script that does the following to all documents in a SharePoint 2010 document library: Downloads the document to a network file share Deletes the original document ...
11
votes
1answer
3k views

Making Document Libraries visible to some users and not others

I have several document libraries that I would like to list on the front page but make visible to certain users only. If I set it up this way: -UserLib1, user1 has read permissions -UserLib2, user2 ...
11
votes
3answers
10k views

Document Library WebPart open to specific folder

Is there a way to have a Document Library WebPart open to a specific folder? I've been playing around for a few hours and I don't see a decent option.
11
votes
1answer
2k views

Modification date gets updated when selecting/clicking a file

On our SharePoint site the modification date of files gets updated when it should not, when no changes to a file have been made. I have found two ways to reproduce this error: A document is opened ...
10
votes
5answers
21k views

What are the client side requirements to enable the “upload multiple files” link?

What are the client side requirements to enable the "upload multiple files" link? I'm using WSS 3.0. Also using FBA, not sure if that matters. It "works on my machine", but not for some other users....
10
votes
5answers
201 views

URL redirect from a button

I have added a button into my SharePoint list using SharePoint designer. I want to be able to open a document from the button. So I go the url for the word document by going properties on the normal ...
10
votes
3answers
635 views

Filter out folders from a user alert against a list

I have created an alert for a user against a list (more specifically, a document library). I want the user to be notified of all changes regarding list items (documents) and not any sub folders. ...
10
votes
2answers
20k views

Get all Files from sub folder of a certain content type

my problem is I have a document library with sub folders. Also the document library got more than one content type. Is there a way to create a CAML or LINQ query to get all files of a certain content ...
10
votes
2answers
19k views

Adding document version number on Excel Spreadsheet as label for printing purpose

I have a situation where I need to have version number on each document in version controlled document library. Having version number on printed sheet would help to see the validity of document. I ...
9
votes
7answers
3k views

What are the alternatives to InfoPath

I want to design form, for SharePoint library. Previously I had deign complex InfoPath form, But now I don't want to use InfoPath form. Since Microsoft announced in a blog post titled Update on ...
9
votes
5answers
44k views

How to get a Download link for a document in SharePoint library for anonymous users

I uploaded a file to a folder in https://sitename-my.sharepoint.com/ I created a view link, requiring no access The link that I get when I click on share looks something like this https://...
9
votes
7answers
29k views

The file is locked for exclusive use by same person SharePoint Online

I'm having a problem recently, when I just create a document and after that I try to update its properties it give me this error: The file "file" is locked for exclusive use by same User The ...
9
votes
1answer
4k views

How to Call “Open with Explorer” From Custom Code?

I have a custom layouts page that contains a custom visual WebPart. This WebPart wraps a XsltListViewWebPart with a toolbar. The toolbar is supplied as a RenderingTemplate. The XsltListViewWebPart ...
8
votes
1answer
19k views

Office 365 - Open html document in browser in document library

I'm using office 365. I would like to be able to click on an html file in the document library and have it open in the browser instead of prompting me to download. How would I do this?
8
votes
5answers
69k views

Move files into sub-folders in Library in SharePoint 2010

I have been trying to find a way for this one but haven't been able to. It may be right under my nose, so here it goes. We have a Library with couple of folders, sub folders and files. I have been ...
8
votes
2answers
4k views

How do I create a upload button on SharePoint online

I would like to know how I can create an upload button on a SharePoint page so a user is able to click on the upload button and upload a document. Like this one:
8
votes
1answer
31k views

Folders in document libraries: how to navigate back up to parent folder (web part on page)?

I have a document library web part on a page and it contains a folder. When a user clicks on the folder it opens and shows the documents inside, but there is no way to go back to the parent folder ...
8
votes
1answer
1k views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. any idea how to do it using CSOM?
8
votes
3answers
2k views

Duplication of documents in library

We are implementing SharePoint Online (Office 365). We are finding that changes made to a document (open in Word Online) save as a new document by the same name rather than updating the existing ...
8
votes
2answers
7k views

Excel files always open in browser

On our Intranet I have activated the site collection feature "Open Documents in Client Applications by Default". On the Document libraries I have also set the *Default open behavior for browser-...
8
votes
3answers
3k views

How to add metadata to a Modern Page?

In your Site Pages library let's say you have a Wiki Page and a Site Page (i.e. modern page). When I add a choice column, let's call it Category, I see the field show in the edit form for the Wiki ...
8
votes
2answers
7k views

How to move items between folders Document List?

Is it possible to move documents between different folders in Document List? EDIT: I mean possible for a sharepoint standard user, not an admin. For example, suppose that my Document Library has two ...
8
votes
1answer
5k views

Permission to Anonymous user for Document of Document Library

I have a site in SharePoint which is not available for Anonymous user. I have created a document library and added Document in that. Now, I would like to show particular Document which is visible to ...
8
votes
1answer
1k views

Set metadata column value from query string when uploading documents

When users upload files to a SharePoint Online (2013) document library, I would like for a value from the query string to be inserted into a metadata column in the library. I found a number of posts ...
7
votes
4answers
419 views

How can I count Document library in Sites(SPWeb) Level?

I`m making SharePoint site Analysis program. And I have a question. In Sites(SPWeb) Level, I want to count document library. So I`m using SPWeb.DocTemplate Property like this. public class ...
7
votes
1answer
16k views

REST post with metadata column?

I have a jquery script that uploads a file to document library. I'm trying to set a choice column in the same call, but can't seem to get it to work. The upload is working, but Col1 is a choice ...
7
votes
2answers
971 views

Document library custom button in ribbon

Is there a way to add a custom button inside the ribbon on the modern ui? - but I cannot modify the master page in any way shape or form
7
votes
1answer
3k views

Fastest way for looping through a SPWebCollection

I've developed a console application for looping through all the webs inside my SharePoint 2010 site, but it's kind of slow, until the point that it throws OutOfMemory exception. This is the code I ...
7
votes
2answers
2k views

Script to automatically import documents from a network share on a regular schedule

I am new to SharePoint development. I am trying automate the task of: Uploading documents from a network share to a SharePoint document library. The related metadata for each of the files also need ...

1
2 3 4 5
70