Skip to content

Commit

Permalink
@uppy/aws-s3-multipart: fix metadata shape (#4267)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jan 5, 2023
1 parent f56520f commit c334fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3-multipart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class AwsS3Multipart extends BasePlugin {
const metadata = file.meta ? Object.fromEntries(
(this.opts.allowedMetaFields ?? Object.keys(file.meta))
.filter(key => file.meta[key] != null)
.map(key => [`metadata[${key}]`, String(file.meta[key])]),
.map(key => [key, String(file.meta[key])]),
) : {}

return this.#client.post('s3/multipart', {
Expand Down

0 comments on commit c334fb9

Please sign in to comment.