Closed victorsferreira closed 2 years ago
Preserves filename extension when using safeFileNames option.
So it looks like preserveExtension only matters when safeFileNames is set true. Otherwise, the file name remains unchanged.
Yes this only works in conjunction with safeFileNames
I realized that my uploads aren't working with version 1.3.1. I tried to check the internals, and am I wrong or
preserveExtension
is doing nothing right now?Anytime I turn
useTempFiles
to true it creates files with the name liketmp-1-1648177925863
and never preserve the file extension.This is my code right now
The expected behavior is a file with name
user.jpg
is uploaded to a folder./uploads
and the final file looks like./uploads/tmp-1-1648177925863.jpg