teableio/teable

View on GitHub
packages/openapi/src/import/constant.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { SUPPORTEDTYPE } from './types';

export const importTypeMap = {
  [SUPPORTEDTYPE.CSV]: {
    accept: 'text/csv,text/tab-separated-values',
    exampleUrl: 'https://www.example.com/file.csv',
    exceedSize: null,
  },
  [SUPPORTEDTYPE.EXCEL]: {
    accept:
      'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel',
    exampleUrl: 'https://www.example.com/file.xlsx',
    exceedSize: 5,
  },
};