mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 12:53:21 +02:00
Newest version of formidable changes the default maximum file size to 2MB, which is way too low for anything. Make the limit configurable and set to 1GB by default.
This commit is contained in:
@@ -72,7 +72,9 @@ module.exports = function(options) {
|
||||
}
|
||||
|
||||
app.post('/s/upload/:plugin', function(req, res) {
|
||||
var form = new formidable.IncomingForm()
|
||||
var form = new formidable.IncomingForm({
|
||||
maxFileSize: options.maxFileSize
|
||||
})
|
||||
var plugin = req.params.plugin
|
||||
Promise.promisify(form.parse, form)(req)
|
||||
.spread(function(fields, files) {
|
||||
|
||||
Reference in New Issue
Block a user