jaysylvester / citizen

Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.
MIT License
100 stars 7 forks source link

File upload options: hold buffer in memory or write to directory #117

Open jaysylvester opened 2 years ago

jaysylvester commented 2 years ago

After removing formidable, citizen keeps form file uploads in memory in binary format during the life of the request, leaving it to the app to process the data using Buffer and create a file manually. Instead, provide a config option that tells citizen to keep the payload in memory or process it and save the file to the specified directory.