From 4957e5ce255947bea04d1d9ba32cac227e775488 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Wed, 28 Oct 2026 21:12:46 +0100 Subject: [PATCH] refactor(surf): take the uploads inline types from attach.IsInlineContentType (quick-261028-rqe) - the route's private inline list and its helper are gone; the disposition writer asks attach.IsInlineContentType, the same definition attach.Store uses for the disposition it stores - headers are unchanged (TestUploadsResponseHeaders, TestUploadsMount) - surf README and the storage page name the shared function --- docs/services/storage.md | 2 +- modules/surf/README.md | 2 +- modules/surf/uploads.go | 39 +++++++++++++-------------------------- 3 files changed, 15 insertions(+), 28 deletions(-) diff --git a/docs/services/storage.md b/docs/services/storage.md index d8256d07..4c603c94 100644 --- a/docs/services/storage.md +++ b/docs/services/storage.md @@ -111,7 +111,7 @@ The route serves originals and thumbnails and answers 404 for a missing file, an - Every response carries `X-Content-Type-Options: nosniff`. - Every response carries `Content-Security-Policy: default-src 'none'; img-src 'self'; media-src 'self'; sandbox`. A file opened as a page runs no script and gets an opaque origin, so it cannot read the application's cookies or storage. The policy does not affect an `` or `