Bug #2984: Add a csrftoken to the upload ajax call

(cherry picked from commit 0952428027)
(cherry picked from commit 87f1459eaf386e67522be2e1d50fe85ed4874110)
This commit is contained in:
Jaime Melis authored and Carlos Martín committed 2014-07-01 12:42:15 +02:00
1 parent 165b9b453b
commit 0a6734986b
1 file changed
+1
@@ -938,6 +938,7 @@ function initialize_create_image_dialog(dialog) {
},
onSubmit: function(id, fileName){
uploader.setParams({
csrftoken: csrftoken,
img : JSON.stringify(img_obj),
file: fileName
});