ikhsanalatsary/multer-sharp-s3

Suffix on Resize problem

YosaRama opened this issue · 1 comments

Thanks for amazing package, I have a little problem about suffix, i want to resize image to multiple size, this is my code :

Screen Shot 2021-09-28 at 11 48 34

the result what i got on S3 like this :

Screen Shot 2021-09-28 at 11 50 03

the problem is no type on my uploaded file, I've try add static extension on suffix like

{suffix : "1920px.jpg"}

it's work !, but i need extension with dynamic responsibility

I've to try use file.originamname for Key but the output something like :

Screen Shot 2021-09-28 at 11 53 26

suffix print after the extension

my expectation for output is "<filename>-<suffix>.<extension>" , How do I got this output ?

Thanks !

Thank you for addressing this, I already published 0.2.2 to npm. I think #40 fixes this problem. And let me know if not 😄