feat: allow previewing CSV files as plaintext (#1188)

This commit is contained in:
Aman Harwara 2022-07-01 18:34:24 +05:30 committed by GitHub
parent 53ff07244a
commit 87213e9f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
export const PreviewableTextFileTypes = ['text/plain', 'application/json']
export const PreviewableTextFileTypes = ['text/plain', 'text/csv', 'application/json']
export const isFileTypePreviewable = (fileType: string) => {
const isImage = fileType.startsWith('image/')