Skip to content

Commit 0f5c752

Browse files
authored
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 #1386
1 parent 3d2df5f commit 0f5c752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/import-page/file-section/FileSection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const FileSection = ({ intl, courseId }) => {
4141
handleError,
4242
))
4343
}
44-
accept={{ 'application/gzip': ['.tar.gz'] }}
44+
accept={{ 'application/x-tar.gz': ['.tar.gz'] }}
4545
data-testid="dropzone"
4646
style={{ height: '200px' }}
4747
/>

0 commit comments

Comments
 (0)