mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-21 13:34:04 +02:00
truncate the original filename metadata
This commit is contained in:
1 parent
dba66d4da1
commit
f1d546c845
1 file changed
+1
-1
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user