diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 1 |
1 files changed, 1 insertions, 0 deletions
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() }) |