aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/newMenu/newFolder.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/newMenu/newFolder.ts')
-rw-r--r--apps/files/src/newMenu/newFolder.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/newMenu/newFolder.ts b/apps/files/src/newMenu/newFolder.ts
index 33fd113b7c3..a7fa38c706c 100644
--- a/apps/files/src/newMenu/newFolder.ts
+++ b/apps/files/src/newMenu/newFolder.ts
@@ -70,7 +70,7 @@ export const entry = {
async handler(context: Folder, content: Node[]) {
const contentNames = content.map((node: Node) => node.basename)
const name = getUniqueName(t('files', 'New folder'), contentNames)
- const { fileid, source } = await createNewFolder(context.source, name)
+ const { fileid, source } = await createNewFolder(context.encodedSource, encodeURIComponent(name))
// Create the folder in the store
const folder = new Folder({