first commit

This commit is contained in:
lendry
2026-06-24 14:37:15 +03:00
commit 995adeedd4
188 changed files with 28810 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export function buildContentDisposition(type: 'inline' | 'attachment', fileName: string) {
const asciiFallback = fileName.replace(/[^\x20-\x7E]+/g, '_').replace(/["\\]/g, '_') || 'file';
const encoded = encodeURIComponent(fileName);
return `${type}; filename="${asciiFallback}"; filename*=UTF-8''${encoded}`;
}