Closed anthonypz closed 1 year ago
We have a checkFileType function in uploadRoutes.js that only allows image uploads, but it is never used in the middleware. These changes utilize that function and also responds with a status code of 400 to the client when a non-image is uploaded.
We have a checkFileType function in uploadRoutes.js that only allows image uploads, but it is never used in the middleware. These changes utilize that function and also responds with a status code of 400 to the client when a non-image is uploaded.