diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -660,7 +660,6 @@ class FilesController(BaseRepoController file_obj = r_post.get('upload_file', None) if file_obj is not None and hasattr(file_obj, 'filename'): - filename = file_obj.filename content = file_obj.file if hasattr(content, 'file'): diff --git a/rhodecode/public/css/main.less b/rhodecode/public/css/main.less --- a/rhodecode/public/css/main.less +++ b/rhodecode/public/css/main.less @@ -2008,6 +2008,10 @@ BIN_FILENODE = 7 input { display: none; } + margin-top: 10px; + } + .file-upload-label { + margin-top: 10px; } p { margin-top: 5px; diff --git a/rhodecode/templates/files/files_add.mako b/rhodecode/templates/files/files_add.mako --- a/rhodecode/templates/files/files_add.mako +++ b/rhodecode/templates/files/files_add.mako @@ -56,11 +56,17 @@