mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-03 00:27:02 +00:00
fix(s3): nil pointer when uploading files to SeaweedFS (close #3265)
This commit is contained in:
@@ -420,9 +420,14 @@ func (handler *Driver) Meta(ctx context.Context, path string) (*MetaData, error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
etag := ""
|
||||
if res.ETag != nil {
|
||||
etag = *res.ETag
|
||||
}
|
||||
|
||||
return &MetaData{
|
||||
Size: *res.ContentLength,
|
||||
Etag: *res.ETag,
|
||||
Etag: etag,
|
||||
}, nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user