Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, 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.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
}