From 033d27ac3fe92dd16d9284aee9ad98f64e1c770b Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 7 Mar 2017 11:47:09 -0500 Subject: Ignore empty uploads from w3m --- lib/serve.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 88fe389..1f86188 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -75,6 +75,7 @@ Serve.prototype.go = function () { ) done(function (err, size, id) { if (err) return cb(err) + if (size === 0 && !filename) return cb() data[fieldname] = {link: id, name: filename, type: mimetype, size: size} cb() }) -- cgit v1.2.3