Multer accepts an options object, the most basic of which is the dest property, which tells Multer where to upload
the files. In case you omit the options object, the file will be renamed and uploaded to the temporary directory of
the system. If the inMemory option is true, no data is written to disk but data is kept in a buffer accessible in
the file object.
By the default, Multer will rename the files so as to avoid name conflicts. The renaming function can be customized
according to your needs.
The following are the options that can be passed to Multer.
Multer accepts an options object, the most basic of which is the dest property, which tells Multer where to upload the files. In case you omit the options object, the file will be renamed and uploaded to the temporary directory of the system. If the inMemory option is true, no data is written to disk but data is kept in a buffer accessible in the file object.
By the default, Multer will rename the files so as to avoid name conflicts. The renaming function can be customized according to your needs.
The following are the options that can be passed to Multer.