Upload file error subtype

const profilePic = request.file(field, {
      types: ['image'],
      size: `${size}mb`
await profilePic.move(Helpers.appRoot(path), {
      name: `${(new Date().getTime())}.${profilePic.subtype}`

upload file abc.jpg subtype error abc.jpeg
abc.psd subtype abc.vnd.adobe.photoshop


I don’t get the issues completely. Are you saying that image validation is failing for jpg and jpeg.

And psd is not an image


PSD has also been uploaded successfully, and no error has been reported.


After upload the file abc.jpg, it will be processed as: abc.jpeg
After upload the file abc.psd, it will be processed as: abc.vnd.adobe.photoshop