summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/projects.py4
-rw-r--r--docs/gl_objects/projects.rst4
2 files changed, 3 insertions, 5 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index f0a4d1a..849d6f4 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -379,7 +379,7 @@ project.upload("filename.txt", filedata="Raw data")
# end project file upload with data
# project file upload markdown
-uploaded_file = project.upload_file("filename.txt", filedata="data")
+uploaded_file = project.upload("filename.txt", filedata="data")
issue = project.issues.get(issue_id)
issue.notes.create({
"body": "See the attached file: {}".format(uploaded_file["markdown"])
@@ -387,7 +387,7 @@ issue.notes.create({
# project file upload markdown
# project file upload markdown custom
-uploaded_file = project.upload_file("filename.txt", filedata="data")
+uploaded_file = project.upload("filename.txt", filedata="data")
issue = project.issues.get(issue_id)
issue.notes.create({
"body": "See the [attached file]({})".format(uploaded_file["url"])
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index b6cf311..7f3d479 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -781,7 +781,7 @@ Delete a list:
:end-before: # end board lists delete
-File Uploads
+File uploads
============
Reference
@@ -790,12 +790,10 @@ Reference
* v4 API:
+ :attr:`gitlab.v4.objects.Project.upload`
- + :class:`gitlab.v4.objects.ProjectUpload`
* v3 API:
+ :attr:`gitlab.v3.objects.Project.upload`
- + :class:`gitlab.v3.objects.ProjectUpload`
* Gitlab API: https://docs.gitlab.com/ce/api/projects.html#upload-a-file