diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index b1e86ff2643..90657b2e764 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1469,7 +1469,7 @@ class Binary(http.Controller):
@http.route('/web/binary/upload', type='http', auth="user")
@serialize_exception
- def upload(self, callback, ufile):
+ def upload(self, ufile, callback=None):
# TODO: might be useful to have a configuration flag for max-length file uploads
out = """
+
@@ -715,6 +716,8 @@
+
+