X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/6ea74343d9d1efd307748c539b87b278d25f484d..5b1eddb70881d4dfd7a67c50b5b22e315927bf24:/skins/ajax_scripts/fileupload.js?ds=sidebyside diff --git a/skins/ajax_scripts/fileupload.js b/skins/ajax_scripts/fileupload.js index bf36628..675ff13 100644 --- a/skins/ajax_scripts/fileupload.js +++ b/skins/ajax_scripts/fileupload.js @@ -68,7 +68,7 @@ DDFileUploaderBase.prototype.upload = function(item) { req.open("PUT", this.uploadUrl); req.setRequestHeader("Content-Type", file.type); - req.setRequestHeader("X-File-Name", file.name); + req.setRequestHeader("X-File-Name", encodeURI(file.name)); addListener(reader, 'load', function(evt){ try {