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
This commit is contained in:
Brayan Cerón
2025-04-28 11:45:36 -05:00
committed by GitHub
parent 3d2df5f4be
commit 0f5c752eb0

View File

@@ -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' }}
/>