Attachments & Links
This guide is for workspace members (admin, lead, member; viewer can download attachments and view links).
Attachments
Section titled “Attachments”Patchwork stores attachments in MinIO using browser-direct presigned URLs:
- Open a ticket and drag a file into the Attachments dropzone or click Upload.
- Default allowed file types:
.txt,.md,.markdown,.csv,.json,.pdf,.png,.jpg,.jpeg,.webp,.gif(configurable by Admins in Storage & Files). - Default max file size:
5 MBin System Configuration (MAX_ATTACHMENT_BYTESin.envsets the server upload ceiling,10 MBby default). - Text from
.pdf,.txt,.md,.csv, and.jsonfiles is extracted and indexed for Full-Text Search.
GitHub & GitLab Links
Section titled “GitHub & GitLab Links”- In the ticket panel under External Links, paste a GitHub or GitLab PR, MR, issue, or commit URL.
- Patchwork validates the host against Allowed Forge Hosts (default:
github.com,gitlab.com) and fetches live status metadata. - Admins can configure optional
GITHUB_TOKEN/GITLAB_TOKENcredentials for higher API rate limits or private repositories.
Expected Result
Section titled “Expected Result”Uploaded files appear with size and MIME metadata and download via short-lived presigned URLs; forge links display live PR/MR/issue state.
Troubleshooting
Section titled “Troubleshooting”- Upload blocked by browser or
SignatureDoesNotMatch: VerifyMINIO_PUBLIC_URLmatches the reachable MinIO host (https://files.<domain>in production). - Forge link host rejected: Ask an Admin to add your self-hosted GitLab/GitHub Enterprise domain in System Configuration -> Integrations.