Add max files limit per share

This commit is contained in:
Elias Schneider
2022-04-30 20:03:09 +02:00
parent 4cf67db6a3
commit 7ddce593f9
3 changed files with 7 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
addVisitorCount(shareId);
const fileListWithoutPreview = (await awServer.storage.listFiles(shareId))
const fileListWithoutPreview = (await awServer.storage.listFiles(shareId, undefined, 100))
.files;
for (const file of fileListWithoutPreview) {