Skip to content

Commit d4061ac

Browse files
committed
Fixed JSON output format to be compatible with jquery-file-upload https://github.com/blueimp/jQuery-File-Upload/wiki/JSON-Response
1 parent 815f050 commit d4061ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/filehandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (middleware, options) {
1717
: 'text/plain'
1818
});
1919
files = {files: result};
20-
res.json(200, files);
20+
res.json(200, { files: files });
2121
}
2222
});
2323

0 commit comments

Comments
 (0)