SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
s3: use "response-content-disposition" to overwrite default content-disposition
Chris Lu8e9273db9988
diff --git a/weed/server/common.go b/weed/server/common.goindex 2054e1a84f..634d5757cc 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -250,6 +250,11 @@ func handleStaticResources2(r *mux.Router) {}func adjustHeaderContentDisposition(w http.ResponseWriter, r *http.Request, filename string) {+ responseContentDisposition := r.FormValue("response-content-disposition")+ if responseContentDisposition != "" {+ w.Header().Set("Content-Disposition", responseContentDisposition)+ return+ }if filename != "" {contentDisposition := "inline"if r.FormValue("dl") != "" {