Skip to content

Commit

Permalink
Merge pull request #1589 from 0chain/feat/upload-meta
Browse files Browse the repository at this point in the history
upload custom meta
  • Loading branch information
dabasov authored Sep 1, 2024
2 parents e5ddf91 + 24e0779 commit 94b4260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wasmsdk/blobber.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ type BulkUploadOption struct {
Md5HashFuncName string `json:"md5HashFuncName,omitempty"`
MimeType string `json:"mimeType,omitempty"`
MemoryStorer bool `json:"memoryStorer,omitempty"`
CustomMeta string `json:"customMeta,omitempty"`
}

// BulkUploadResult result of a single file upload, usually as part of bulk operations request
Expand Down Expand Up @@ -774,6 +775,7 @@ func multiUpload(jsonBulkUploadOptions string) (MultiUploadResult, error) {
MimeType: mimeType,
RemoteName: fileName,
RemotePath: fullRemotePath,
CustomMeta: option.CustomMeta,
}
numBlocks := option.NumBlocks
if numBlocks <= 1 {
Expand Down

0 comments on commit 94b4260

Please sign in to comment.