mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: import customers/vendors
This commit is contained in:
@@ -4,7 +4,8 @@ import { ServiceError } from '@/exceptions';
|
||||
export function allowSheetExtensions(req, file, cb) {
|
||||
if (
|
||||
file.mimetype !== 'text/csv' &&
|
||||
file.mimetype !== 'application/vnd.ms-excel'
|
||||
file.mimetype !== 'application/vnd.ms-excel' &&
|
||||
file.mimetype !== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||
) {
|
||||
cb(new ServiceError('IMPORTED_FILE_EXTENSION_INVALID'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user