From d9d08c21fc2d04607a34fe4c81f3a4a5363d7115 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Wed, 4 Dec 2024 12:56:36 +0100 Subject: [PATCH] feat: add support for PPT(x) files --- .../UploadPage/helpers/getAcceptedContentTypes.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/UploadPage/helpers/getAcceptedContentTypes.ts b/src/pages/UploadPage/helpers/getAcceptedContentTypes.ts index cedb4269..1068a212 100644 --- a/src/pages/UploadPage/helpers/getAcceptedContentTypes.ts +++ b/src/pages/UploadPage/helpers/getAcceptedContentTypes.ts @@ -5,5 +5,14 @@ * @returns comma seperated string with supported file types */ export default function getAcceptedContentTypes(): string { - return '.zip,.html,.csv,.md,.pdf'; + const acceptedTypes = [ + '.zip', + '.html', + '.csv', + '.md', + '.pdf', + '.ppt', + '.pptx', + ]; + return acceptedTypes.join(','); }