Upload file error subtype


#1
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
OR
abc.psd subtype abc.vnd.adobe.photoshop


#2

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


#3

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


#4

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