Create or update large file by api

Hello.
When I am try create big (>1mb) file by api in repository, I get an error :
(‘Connection aborted.’, ConnectionResetError(10054, ‘An existing connection was forcibly closed by the remote host’, None, 10054, None))
For example

    with open(image_path, "rb") as image_file:
        encoded_image = base64.b64encode(image_file.read())
    self.project.files.create({'file_path': 'test_img',
                               'branch': 'master',
                               'content': f'{encoded_image}',
                               'encoding': 'base64',
                               'commit_message': 'test_test'})

Hello @artegor1993, could you please open an issue about it in https://gitlab.com/gitlab-org/gitlab-ce/issues. It would be great to share your problem there so everyone can follow up.