(js) Fix saving draft outside Mail module

Fixes #4071
This commit is contained in:
Francis Lachapelle
2017-03-07 10:26:10 -05:00
parent 74c2926bca
commit 270ff1bd29
3 changed files with 5 additions and 1 deletions
@@ -33,7 +33,7 @@
vm.sendState = false;
vm.toggleFullscreen = toggleFullscreen;
vm.uploader = new FileUploader({
url: stateMessage.$absolutePath({asDraft: true}) + '/save',
url: stateMessage.$absolutePath({asDraft: true, withResourcePath: true}) + '/save',
autoUpload: true,
alias: 'attachments',
removeAfterUpload: false,