diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -660,6 +660,7 @@ class FilesController(BaseRepoController file_obj = r_post.get('upload_file', None) if file_obj is not None and hasattr(file_obj, 'filename'): + filename = r_post.get('filename_upload') content = file_obj.file if hasattr(content, 'file'): 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 @@ -59,7 +59,7 @@ ${_('Filename')}: