summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 19:01:32 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 19:01:32 +0200
commitf4da4f285a4689e1d4eb8bb7d800d6570dfba6d0 (patch)
treef66b486913738f1da5c72cd4ce71167a5f7a29a1 /client/js
parenta577b60ce475f94221462befcb0b5b4a347aad33 (diff)
test
Diffstat (limited to 'client/js')
-rw-r--r--client/js/services/Image.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/js/services/Image.js b/client/js/services/Image.js
index d427e51..d6c9fed 100644
--- a/client/js/services/Image.js
+++ b/client/js/services/Image.js
@@ -52,13 +52,13 @@ mainApp.factory('Image',[ '$http', 'Identity', function($http, Identity){
form_data.append("token" , Identity.getToken())
form_data.append('action',"uploadImage")
form_data.append('id','6564')
- form_data.append('file_name', fileToUpload.name);
+ form_data.append('file_name', fileToUpload);
$.ajax({
url: "../server/index.php", // Url to which the request is send
type: "POST", // Type of request to be send, called as method
data: form_data, // Data sent to server, a set of key/value pairs (i.e. form fields and values)
- file_name:fileToUpload.name,
+ file_name:fileToUpload,
token : Identity.getToken(),
task : "image",
action:'uploadImage',