Closed 0x67 closed 1 year ago
Hi, right now the file check is done via mime type which is given by busboy
good idea to check the file type via a magic number, we should add some validation decorators. thanks for idea
Ah my own decorator use file-type to check the buffer, I can rewrite it to use busboy then I'll submit a PR
I have already started the implementation, there will be a new version soon with built-in decorators to check file extensions via file-type. It will check the type via incoming stream from busboy, this will improve version backward compatibility. I also added some tests for this
I'm looking forward to it 🙂
And thank you for the awesome library!
Hi, version 1.8.0 has been released! Please check new version and change log and If the problem has been solved, then close it
Hi @dmitriy-nz, I ran tests in my projects with the new version and it looks good Thank you!
So right now the I guess it only check for file type based on its extension, do you plan to add support for it? This is quite an edge cases but simple to implement using file-type library.