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
fier/s3: save "Content-Disposition" to extended properties
Chris Lude1ec050e86b
diff --git a/weed/server/common.go b/weed/server/common.goindex f7a7619f3c..16213689d1 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -256,6 +256,9 @@ func adjustHeaderContentDisposition(w http.ResponseWriter, r *http.Request, filew.Header().Set("Content-Disposition", responseContentDisposition)return}+ if w.Header().Get("Content-Disposition") != "" {+ return+ }if filename != "" {filename = url.QueryEscape(filename)contentDisposition := "inline"diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.goindex 872d83fca2..1c230bad34 100644--- a/weed/server/filer_server_handlers_write_autochunk.go+++ b/weed/server/filer_server_handlers_write_autochunk.go@@ -218,7 +218,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNaentry.Extended = SaveAmzMetaData(r, entry.Extended, false)for k, v := range r.Header {- if len(v) > 0 && (strings.HasPrefix(k, needle.PairNamePrefix) || k == "Cache-Control" || k == "Expires") {+ if len(v) > 0 && (strings.HasPrefix(k, needle.PairNamePrefix) || k == "Cache-Control" || k == "Expires" || k == "Content-Disposition") {entry.Extended[k] = []byte(v[0])}}