return ids after upload, fixes #162

This commit is contained in:
j 2016-01-20 13:14:38 +05:30
parent 97ef26f7e7
commit d0a9515cc0

View file

@ -1044,9 +1044,9 @@ oml.upload = function(fileslist, callback) {
request.onreadystatechange = function() {
if (request.readyState == 4) {
if (request.status == 200) {
next();
var response = JSON.parse(request.responseText);
ids.concat(response.data.ids);
ids = ids.concat(response.data.ids);
next();
} else {
callback(null, {
code: request.status,