changed mimetype check on handleIportUsers
MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -923,7 +923,8 @@ export default class UserService {
});
// eslint-disable-next-line @typescript-eslint/no-misused-promises
busboy.on('file', async (fieldname, file, filename, encoding, mimetype) => {
- if (mimetype === 'text/csv') {
+ // if (mimetype === 'text/csv') {
+ if (filename.slice(-4) === '.csv') {
const converter = csvToJson({
trim: true,
delimiter: Constants.CSV_SEPARATOR,

changed mimetype check on handleIportUsers