Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 55k
    • Issues 55k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #197361
Closed
Open
Issue created Jan 17, 2020 by Andy Soiron@Andysoiron🌴Maintainer

API list all files on a project

Problem to solve

We have an endpoint for uploading a file to a project. At the moment just the create action (POST /projects/:id/uploads) is implemented. It is not possible to list all available files.

Proposal

We should create a new routes for the missing action

list: GET /projects/:id/uploads

Permissions and Security

Files can be used in issues, wiki pages and merge requests. The minimum access level to see all of these is Reporter

Documentation

This should add a new section to the API documentation: https://docs.gitlab.com/ee/api/projects.html#upload-a-file

Testing

Intended users

So far it seems like we don't have a UI to manage uploads. We still have to validate to which users this feature would be useful.

Links / references

This issue came up in a discussion on #25838

Implementation Guide

This can be added next to the POST upload endpoint in lib/api/projects.rb:667.

API endpoints are tested in request specs. The right place to add a test would be next to the description of POST /projects/:id/uploads

Edited Feb 08, 2023 by Lee Tickett
Assignee
Assign to
Time tracking