Commit 8f0f4454 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-antons-missing-filename-import-script' into 'master'

Docs - Fix missing filename from import script

See merge request gitlab-org/gitlab!17317
parents 59374cca 91e439ea
......@@ -137,7 +137,7 @@ from io import BytesIO
s3_file = requests.get(presigned_url)
url = 'https://gitlab.example.com/api/v4/projects/import'
files = {'file': BytesIO(s3_file.content)}
files = {'file': ('file.tar.gz', BytesIO(s3_file.content))}
data = {
"path": "example-project",
"namespace": "example-group"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment