Questions tagged [folder]

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

Filter by
Sorted by
Tagged with
22
votes
6answers
58k 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
6k 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
13k 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
19k 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
12k 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
949 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
10k 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 ...
4
votes
3answers
17k 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 ...
9
votes
3answers
11k 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 ...
2
votes
2answers
36k 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 ...
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
8k 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
204 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 ...
5
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
11k 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
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 ...
3
votes
4answers
10k 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
16k 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
5k 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 ...
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
5k 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
3k 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
1answer
948 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. ...
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
862 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
2answers
2k 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,...
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
2answers
857 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 ...
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
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
461 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
2answers
5k 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
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 ...
1
vote
2answers
6k 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
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. ...
0
votes
1answer
651 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
2answers
9k views

Easier way to move files up a level?

I am trying to flatten the file structure we have on SharePoint. Is there an OOTB but non manual way to move the contents of a folder up a level? I'd rather not download the contents of the folder, ...
0
votes
1answer
1k views

“Invalid file name” error creating folder programmatically

I get the following error when trying to create a folder: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have ...
0
votes
1answer
1k views

how to auto fill a column of file/folder based on parent folder's value of that column in sharepoint 2013?

Is there a way to create a workflow to auto fill a column value based on parent folder's same column value. I have the parent folder "Contracts". I assigned a category column for it called "...
0
votes
2answers
1k 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 ...