jpilet / anemomind

Anemomind: a sailing data recording, visualization and analysis solution.
http://www.anemomind.com/
MIT License
14 stars 2 forks source link

File stream require to store file in google cloud storage as well as in local storage #1378

Open wasimkhan-cognologix opened 5 years ago

wasimkhan-cognologix commented 5 years ago

Current anemomind code stores uploaded file in buffer using multer in memory storage. To upload file in google storage, common code is used with a flag, but storing entire file in memory is bad idea. need to stream file so that file can be uploaded to google cloud storage as well as on local storage.