Support video issue attachments

This commit is contained in:
Dotta 2026-05-30 18:01:22 +00:00
parent 911a1e8b0d
commit 75f88c588c
12 changed files with 262 additions and 11 deletions

View file

@ -1,7 +1,7 @@
/**
* Shared attachment content-type configuration.
*
* By default a curated set of image/document/text types are allowed. Set the
* By default a curated set of image/document/text/media types are allowed. Set the
* `PAPERCLIP_ALLOWED_ATTACHMENT_TYPES` environment variable to a
* comma-separated list of MIME types or wildcard patterns to expand the
* allowed set for routes that use this allowlist.
@ -26,11 +26,15 @@ export const DEFAULT_ALLOWED_TYPES: readonly string[] = [
"image/webp",
"image/gif",
"application/pdf",
"application/zip",
"text/markdown",
"text/plain",
"application/json",
"text/csv",
"text/html",
"video/mp4",
"video/webm",
"video/quicktime",
];
export const DEFAULT_ATTACHMENT_CONTENT_TYPE = "application/octet-stream";
@ -42,6 +46,9 @@ export const INLINE_ATTACHMENT_TYPES: readonly string[] = [
"text/markdown",
"application/json",
"text/csv",
"video/mp4",
"video/webm",
"video/quicktime",
];
/**