mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
[#1343] fixed s3 file upload error caused by underscore in metadata
This commit is contained in:
1 parent
cea287a2c1
commit
ede7804a80
2 files changed
+4
-4
No files matched your search
@@ -142,7 +142,7 @@ func (s *System) UploadFile(file *File, fileKey string) error {
|
||||
opts := &blob.WriterOptions{
|
||||
ContentType: mt.String(),
|
||||
Metadata: map[string]string{
|
||||
"original_filename": originalName,
|
||||
"original-filename": originalName,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ func (s *System) UploadMultipart(fh *multipart.FileHeader, fileKey string) error
|
||||
opts := &blob.WriterOptions{
|
||||
ContentType: mt.String(),
|
||||
Metadata: map[string]string{
|
||||
"original_filename": originalName,
|
||||
"original-filename": originalName,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user