Skip to content

Add a GitLab Packages Channel

What You Need Before You Start

You only need three things:

RequirementPurpose
GitLab accountUsed to generate an access token and own the project.
GitLab Personal Access TokenUsed by ImgBed to access the GitLab API, create projects, and upload files to Generic Packages.
Project nameYou can enter only the project name, for example imgbed.

Setup Steps

Step 1: Sign in to GitLab and Create an Access Token

  1. Sign in to GitLab.
  2. Click your avatar in the upper-right corner and open Preferences.
  3. Open Access Tokens from the left sidebar.
  4. Give the token a recognizable name.
  5. Choose an expiration date based on your own maintenance preference.
  6. Select the api scope.
  7. Copy and save the token immediately after it is created.

Create a legacy token

Select token permissions

Step 2: Fill in the GitLab Packages Channel in ImgBed

After selecting GitLab Packages in Upload Settings, fill in the fields as follows:

UI FieldWhat to Enter
Channel nameA name you choose, such as GitLabPrimary.
Access TokenThe GitLab Personal Access Token you just created.
Project nameEither a short project name such as imgbed, or a full path such as username/imgbed.
Private repositoryTurn on or off based on your needs.
RemarkOptional, for example Primary upload channel.

Configure the channel

Step 3: Save the Channel

After filling in the fields, click Save.

The system will handle these details:

System BehaviorDescription
Short project nameImgBed identifies the current GitLab account and expands the value into a full project path.
Full project pathImgBed uses the username/project path exactly as entered.
Project checkIf you use the current personal account path, ImgBed automatically creates the project when it does not exist. If you enter a full path manually, ImgBed uses that path directly.
Public/private stateProject visibility is synchronized according to the current switch.

Quick Checklist

text
Sign in to GitLab
-> Create an Access Token
-> Select only the api scope
-> Return to ImgBed and enter the token and project name
-> Save
-> If only a project name is entered, ImgBed adds the current username automatically
-> If username/project is entered, ImgBed uses it as-is
-> Upload a test image

Released as user documentation for CloudFlare ImgBed.