aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js1
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()
})