From 0f5c752eb0cd3b1f22e5d63e3a5176911d647d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brayan=20Cer=C3=B3n?= <86393372+bra-i-am@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:45:36 -0500 Subject: [PATCH] fix: update MIME type for tar.gz file acceptance in dropzone (#1862) This solves an issue that allowed the users to import files .gz. We make the drop zone allow only .tar.gz files. Resolves https://github.com/openedx/frontend-app-authoring/issues/1386 --- src/import-page/file-section/FileSection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import-page/file-section/FileSection.jsx b/src/import-page/file-section/FileSection.jsx index bbc89a53b..740e6d9e9 100644 --- a/src/import-page/file-section/FileSection.jsx +++ b/src/import-page/file-section/FileSection.jsx @@ -41,7 +41,7 @@ const FileSection = ({ intl, courseId }) => { handleError, )) } - accept={{ 'application/gzip': ['.tar.gz'] }} + accept={{ 'application/x-tar.gz': ['.tar.gz'] }} data-testid="dropzone" style={{ height: '200px' }} />