Skip to content

Commit

Permalink
deal with multiple tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Nov 7, 2024
1 parent 6bceb5c commit 7246bfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/multipartext/multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ func NewMultipartReader(field string, fileInfo storage.FileInfo, src io.Reader)
return nil, "", err
}

for _, tag := range fileInfo.Tags {
if err := writer.WriteField("tags", tag); err != nil {
return nil, "", err
}
if err := writer.WriteField("tags", strings.Join(fileInfo.Tags, ",")); err != nil {
return nil, "", err
}

// Finish the multipart message.
Expand Down

0 comments on commit 7246bfc

Please sign in to comment.