import { Request , Response , NextFunction } from 'express' ; import { statusCode } from '@util/constant' ; const createFile = async ( req , res , next ) => { try { return res . status ( statusCode . OK ) . json ( { success : true , data : { fileInfo : req . file , fileType : req . file . mimetype } , } ) ; } catch ( error ) { return next ( error ) ; } } ; export default { createFile } ;