GitLab Projects API - Managing Uploads

https://docs.gitlab.com/ee/api/projects.html#upload-a-file shows how to upload a file to a project, and even link to it through any Markdown in the project.

A GitLab admin can see the size of all uploads in the project settings, but no other insight or control is provided.

This is applicable for users wishing to migrate from Jira because Jira allows their issues to store attachments.

The endpoint, /api/v4/projects/{project_id}/uploads should be changed to return a list of the typically returned objects when uploading a file, such as in the documentation example:

{
  "alt": "dk",
  "url": "/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png",
  "full_path": "/namespace1/project1/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png",
  "markdown": "![dk](/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png)"
}

It would be useful for a project owner/reporter to be able to GET or DELETE these uploads by using the relative URL.

Currently, users can only fetch uploads they saved the URL to by going to {projectUrl}/{upload_url}, where upload_url would be "/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png" in the example above from the docs.

Edited by 🤖 GitLab Bot 🤖