mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 01:33:10 +09:00
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:
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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user