Questions tagged [folder]

A folder is a virtual container where files can be stored.

Filter by
Sorted by
Tagged with
23
votes
6answers
70k views

Which special Characters are not Allowed in SharePoint 2013\2016 Files\Folders?

I am working on SharePoint Admin and Development part. One of our customer is using SharePoint 2013\2016. User is getting Special character issue while uploading file in SharePoint 2013\2016. We are ...
5
votes
1answer
7k views

Update folder name using REST API

I am using REST to update folder name via sharepoint apps. My code as follows: executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + "/_api/SP.AppContextSite(@...
4
votes
2answers
14k views

Retrieve folders and sub folders from document library by REST call

I need to get a list of folders and sub folders from document library. I feel that approaching this problem using REST call would be easier than the traditional CSOM query. Please suggest a relevant ...
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 ...
13
votes
9answers
46k views

How can I move a document from one directory to another?

How can I move a document into a sub-folder and still maintain its version history from the old location in the new location?
2
votes
2answers
14k views

Use workflow to move document within document library to different folder in same library

I am looking to use a workflow to move documents within a document library to a specific folder in the same document library (this to manage access rights on different documents via the libraries). ...
0
votes
1answer
1k 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. ...
6
votes
1answer
11k views

Get Library and Folder from document guid (C#)

Information given I am using version 16.0.0.0 of the Microsoft.SharePoint.Client library. There are several different document libraries in the SharePoint site. In code, we are given a list of ...
2
votes
2answers
44k views

How to get all the files inside the folder in list

I want to get all the images name inside the folder which is present in list. site>list>folder>files I want to achieve this using csom code. please help me i am able to get the list but not folder ...
5
votes
3answers
18k views

SP2010: Use Workflow to move library item into folder

I need my workflow to move library documents into a folder in the same document library. I can copy items, then delete the original item. I'm not seeing how to specify a folder or sub-folder, just the ...
8
votes
3answers
13k views

How to find the current folder through JS COM?

Is there a way to get a reference to the current folder through the JS COM? It doesn't seem as though it can be done with SP.ListOperation. And by current folder, I mean the folder the user is ...
4
votes
1answer
1k views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
4
votes
3answers
6k views

How to create a folder in SharePoint 2010 document library using REST or HTTP methods

I am using Java to make calls to the SharePoint REST Interface to get list items of a document library and HTTP methods to upload documents to SharePoint. But, I am having a difficult time trying to ...
1
vote
1answer
5k views

Create a folder structure in a discussion board

How can I create a folder structure in a discussion board? I have already tried this solution: 1) Create a new Site Content Type say called 'Thread Folder' based on the Folder Content Type with ...
2
votes
2answers
9k views

Change Document Library folder's Modified timestamp to latest timestamp inside

I have a Sharepoint 2010 Document Library with a range of subfolders and some files within each of them. The problem is, right now every subfolder has the same Modified timestamp, and I want each ...
1
vote
1answer
2k views

Move item to folder when added/edited (SP2013 or O365)

How to move item to folder automatically when it has been added or edited in a library? The folder is in the same library. The correct folder will be defined by metadata. This should happen ...
0
votes
1answer
308 views

Assign Approvers based on folder?

I'm working on implementing a workflow which will start automatically on change/creation (which is working). The issue is that there are a few folders which need cross-department approval. Is there a ...
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 ...
6
votes
6answers
5k views

Folder creation in Document library using listdata.svc

Do you have any tips how can I create a new folder in a document library using listdata.svc (OData REST interface of SharePoint 2010) from JavaScript? SP creates a new file instead of a folder. I can ...
11
votes
1answer
12k views

CSOM Get ListItem of Folder

In an application I'm working on, I'm interacting with SharePoint (2010) via the .NET Client-Side Object Model, and am trying to account for a large number of possible configurations of document ...
8
votes
1answer
32k 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 ...
5
votes
1answer
17k views

How to display item count of specific folder in list

I have a list, which has some columns including title and URL. URL column directs to specific folder related to list item. I want to add one more column in list, which would display items' count of ...
3
votes
4answers
11k views

Replacing AllItems.aspx with a custom AllItems.aspx

I'm trying to customize the page that is used to show the content of folders in a certain (dynamically created) list. This page appeared to be AllItems.aspx. To customize the page I decided to replace ...
2
votes
3answers
2k views

Deactivate email-notifications for SPLists only temporally (and programmatically)

So here's my Problem: I have a list which is used to notificate user. (Announcements) So it's essential that the email notifications work for most of the time. The announcement (items) get saved in ...
2
votes
2answers
18k views

upload to document library subfolder in client object model

I'm using the Client Object Model to upload files from a network drive to a SharePoint document library. Here is how I would specify the upload location if I were uploading to the document library's ...
7
votes
2answers
7k views

When I create a folder programmatically get the error “Invalid item data — missing FileRef”

I am trying to add programmatically the desired Folder. I do the following foreach (SPListItem reparto in reparti.Items) { var folder = dl.Items.Add(dl.RootFolder.ServerRelativeUrl, ...
4
votes
1answer
6k views

How to change Folder Icon in all Document Library

how could I change the Folder Icon in Sharepoint? Is something programmatically, on CSS or simply to change icon in the specific image folder? Thank you very much!
2
votes
3answers
5k views

The advised place to put images and css files

I've been looking on the net for some advise and explanation about where to put my custom css and images for the master page in sharepoint 2010. I'm now busy with branding the portal and i'm a bit ...
2
votes
1answer
1k views

How to create folder and file in SharePoint at the same time using REST API

Using REST API, is there a way we can upload a file to SharePoint and also create the folder to which file to be uploaded. Say for example here “/testfolder” does not exist already in SharePoint and ...
1
vote
3answers
6k views

SharePoint 2013 document library folder limitation

We are working on new project with required storing >50k documents in a document library under single folder. I am wondering if there is any limitation on how many documents we can store in a folder. ...
1
vote
1answer
6k views

Add Group to Folder in a Document Library using Powershell

I want to create a Function with a single command line to add a SP Group to a Folder within a Documents Library. Structure: Site Document Library Folder (Permissions/Group(s) to be added here) ...
0
votes
3answers
4k views

Sharepoint 2010 Folder in Custom List

I would like to have folders in my custom list in order to have a form of archiving. I was able to enable the folders by going to List Settings -> Advance Settings -> 'Make New Folder command ...
7
votes
2answers
2k views

When should document sets be used instead of folders (and vice versa)?

SP2010 supports both folders and document sets, but why are both concepts supported, i.e. in what significant ways do they differ from the use-case perspective? Google has revealed seemingly ...
3
votes
2answers
2k views

XsltListViewWebPart forgetting current web when being rendered on Layouts page

I'm adding a very simple XsltListViewWebPart to an application page. Like so: XsltListViewWebPart lvWebPart = new XsltListViewWebPart { ChromeType = PartChromeType.None, ListUrl = "/somesite/list" }; ...
3
votes
2answers
4k views

Working with document Libraries based on UniqueID REST API

Is it possible to work with the document library with UniqueID/Guids rather than using GetFileByServerRelativeUrl? Say if I wanted to upload a file to a folder, could this be done using the Unique Id ...
3
votes
2answers
3k views

How to create SharePoint Folders programmatically?

How can I create a folder in SharePoint 2013 programmatically? This is how I done the creation of a List. Is it possible to do it with folders? public static SPList GetOrCreateList(ref SPWeb web,...
3
votes
2answers
953 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 ...
3
votes
1answer
1k views

Upload document to a specific folder in a Document Library using JavaScript

I Want to upload document to the Document library's specific folder using JavaScript/JQuery. I tried with the below code. But I can upload documents to the root folder only not to the specific folder. ...
2
votes
0answers
214 views

Showing Folder's modified date as most recently edited documents's modified date in that folder

I have a document library and a folder in it. And inside that folder, many documents are there. Is it possible to show the folder's modified date as the modified date of the most recently edited ...
2
votes
2answers
945 views

SPFolder versions?

I am using SharePoint 2013 Server. I have a document library with enabled versioning. SPFolder.Item.Versions always returns only one last version of the folder item despite it was modified multiple ...
2
votes
2answers
6k views

Creating folder in 2013 with REST API

Related to question Creating Folder using REST and JavaScript, I used 3 approaches to create folder with REST API (native C++ casablanca lib): request.set_method(methods::POST); request.headers().add(...
2
votes
1answer
67 views

A Synced file between two sites

First i have to say I am very new when it comes to Sharepoint but and a skilled developer. I would like to sync a file between two different share sites. The purpose for this is because we have a ...
1
vote
3answers
4k views

Item name / title when creating a folder

I am trying to create a list item with a folder content type by setting it's content type id to a folder content type id. The folder is created successfully but the title is set as 1_.000, 2_.000 etc. ...
1
vote
2answers
6k views

How to rename a folder via csom c# in SharePoint List?

How can I rename a folder in a list via CSOM (c#). I tried it with: var folder = ctx.Web.GetFolderByServerRelativeUrl(folderRelativeUrl); ctx.Load(folder); ctx.ExecuteQuery(); var folderItem = ...
1
vote
2answers
7k views

How to get SPListItemCollection from a SPFolder?

I am making a SharePoint 2010 visual web part, and I want to recursively iterate through all files in a document library which has nested folders. I can get a SPListItemCollection for all items and ...
1
vote
2answers
3k views

Can't see files in master page folder in Sharepoint Designer 2010 but It's still there

When I open SharePoint Designer 2010, and open master page folder, the folder is empty, and no files are showed. If I go to browser and check the same folder, all files are there. How can I fix it?
1
vote
2answers
1k views

How to create folder with custom Content Type in REST with SPFx?

I am creating an SPFx solution to create folders with nested folders. This solution is working fine. but I want to attach some metadata to my folder. For this reason I have created a new folder ...
1
vote
1answer
4k views

Powershell script that outputs all folders from a Site Collection, Site and Subsites and the owners of each

I have been scouring google and could not find anything to go off of in regards to my task. Like the title suggests, I'm trying to utilize a powershell script to output all folders residing in a Site ...
1
vote
1answer
2k views

breakroleinheritance for a folder powershell csom

I am trying to break permission inheritance for certain folders in my document library in office 365. However when $folder.BreakRoleInheritance($false) is executed I get an error: Method ...
0
votes
2answers
2k views

Rename folder with SharePoint online REST API 2013

I want to rename folder via SharePoint Online REST API from CRM Plugin. Below is my code. I am getting HTTP 204 response, but the folder name is not changed. Please can someone tell what is wrong ...