diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index cd1b9fe9c5..cbcb572c28 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -306,7 +306,7 @@ }); } }; - form.setAttribute("action", handler.url); + form.setAttribute("action", handler.url + "&filename=" + window.encodeURIComponent(handler.file.fileName)); form.setAttribute("target", iframe.id); form.setAttribute("method", "post"); form.appendChild(handler.file);