Browse Source

fix(web): restore album drag and drop upload (#1933)

Michel Heusschen 2 years ago
parent
commit
2ac54ce4bd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      web/src/routes/(user)/+layout.svelte

+ 2 - 1
web/src/routes/(user)/+layout.svelte

@@ -10,7 +10,8 @@
 		}
 
 		const filesArray: File[] = Array.from<File>(files);
-		const albumId = ($page.route.id === '/albums/[albumId]' || undefined) && $page.params.albumId;
+		const albumId =
+			($page.route.id === '/(user)/albums/[albumId]' || undefined) && $page.params.albumId;
 
 		await fileUploadHandler(filesArray, albumId);
 	};