From f1d546c8454afecb6f95a8433aa8481f273a9b8c Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Tue, 6 Dec 2022 07:17:59 +0200 Subject: [PATCH] truncate the original filename metadata --- tools/filesystem/filesystem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/filesystem/filesystem.go b/tools/filesystem/filesystem.go index 74a28e0a..bdf72d23 100644 --- a/tools/filesystem/filesystem.go +++ b/tools/filesystem/filesystem.go @@ -142,7 +142,7 @@ func (s *System) UploadMultipart(fh *multipart.FileHeader, fileKey string) error opts := &blob.WriterOptions{ ContentType: mt.String(), Metadata: map[string]string{ - "original_filename": fh.Filename, + "original_filename": originalName, }, }