diff --git a/client/js/controllers/image/edit.js b/client/js/controllers/image/edit.js index be4eb39..01dbd18 100755 --- a/client/js/controllers/image/edit.js +++ b/client/js/controllers/image/edit.js @@ -25,6 +25,7 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', ' ); $('#editImageModal').modal('show'); $("#fileupload").fileupload({ + replaceFileInput: false, formData: {task: "image", token: Identity.getToken(), action: "uploadImage", id: $scope.data.id}, /* ... */ progressall: function (e, data) { @@ -36,7 +37,8 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', ' }, add: function (e, data) { data.process(); - data.context = $('