mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
14 lines
466 B
TypeScript
14 lines
466 B
TypeScript
|
import { Accept } from 'react-dropzone';
|
||
|
|
||
|
export const acceptedFiles: Accept = {
|
||
|
'text/plain': ['.csv', '.txt'],
|
||
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ['.xlsx'],
|
||
|
'application/vnd.ms-excel': ['.xls'],
|
||
|
'application/vnd.apple.numbers': ['.numbers'],
|
||
|
'application/vnd.oasis.opendocument.spreadsheet': ['.ods'],
|
||
|
'application/json': ['.json'],
|
||
|
};
|
||
|
|
||
|
//This should probably set from grafana conf
|
||
|
export const maxFileSize = 1000000;
|