跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

Get instance's global settings for Attachment

GET
/settings/attachment
curl --request GET \
--url https://gitea.example.com/api/v1/settings/attachment \
--header 'Authorization: Basic <credentials>'

GeneralAttachmentSettings

Media typeapplication/json

GeneralAttachmentSettings contains global Attachment settings exposed by API

object
allowed_types
string
enabled
boolean
max_files
integer format: int64
max_size
integer format: int64
Examplegenerated
{
"allowed_types": "example",
"enabled": true,
"max_files": 1,
"max_size": 1
}