The stashed upload was omitting the imageinfo and raw result in the promise.
Change-Id: I79462c1121c879d90eed3d245948335cd08bba30
comment: upload.getComment(),
filename: upload.getFilename(),
text: upload.getText()
comment: upload.getComment(),
filename: upload.getFilename(),
text: upload.getText()
- } ).then( function () {
+ } ).then( function ( result ) {
upload.state = Upload.State.UPLOADED;
upload.state = Upload.State.UPLOADED;
+ upload.imageinfo = result.upload.imageinfo;
+ return result;
}, function () {
upload.state = Upload.State.ERROR;
} );
}, function () {
upload.state = Upload.State.ERROR;
} );