dmitriy-nz / nestjs-form-data

NestJS middleware for handling multipart/form-data, which is primarily used for uploading files.
https://www.npmjs.com/package/nestjs-form-data
MIT License
117 stars 23 forks source link

[SUGGESTION] Allow an `isGlobal` option in the config #41

Closed BayBreezy closed 1 year ago

BayBreezy commented 1 year ago

Hey, thanks for the library.

Is it possible to add an isGlobal option to the config object? That way we don't have to import the NestjsFormDataModule into every module that needs it. Currently, the doc says to just add it to the app.module file, but doing this does not make it globally available.

dmitriy-nz commented 1 year ago

Hi, thanks for the good review! Good idea, it will be implemented in new versions

justinphan1992 commented 1 year ago

Hi, are you working on this one? If not, I can work on it?

BayBreezy commented 1 year ago

@justinphan1992 I would suggest you implement it and do a PR. When @dmitriy-nz gets the time he can look it over and merge. Please. Thanks ❤️

dmitriy-nz commented 1 year ago

Hi again! I release new version 1.8.6 where the parameter for global configuration is added, please check the new version