Closed CorneilleEdi closed 3 years ago
I have encountered a bug.
originalName is supposed to give the original name of the file but it is not working. The file name is retrieved with the filename key.
originalName
filename
With the actual code, console.log(image) gives
MemoryStoredFile { filename: 'apple.jpg', encoding: '7bit', mimetype: 'image/jpeg', buffer: ...., size: 175022 }
The file name is accessible by calling image.filename not image.originalName like in the type definition. image.originalName returns undefined.
image.filename
image.originalName
undefined
I think that it is a bug. To solve it, I've created a pull request. #4 The pull request now gives
MemoryStoredFile { originalName: 'apple.jpg', encoding: '7bit', mimetype: 'image/jpeg', buffer: ...., size: 175022 }
Breaking change: no more filename
Hey! Good job, your PR merged and Included in version 1.4.3
I have encountered a bug.
originalName
is supposed to give the original name of the file but it is not working. The file name is retrieved with thefilename
key.With the actual code, console.log(image) gives
The file name is accessible by calling
image.filename
notimage.originalName
like in the type definition.image.originalName
returnsundefined
.I think that it is a bug. To solve it, I've created a pull request. #4 The pull request now gives