Skip to content

Commit

Permalink
Fix aws-s3-multipart route ordering and query parameters (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossng authored Aug 26, 2021
1 parent 33e2a64 commit c556197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -105,7 +105,7 @@ module.exports = class AwsS3Multipart extends BasePlugin {
this.assertHost('prepareUploadParts')

const filename = encodeURIComponent(key)
return this.client.get(`s3/multipart/${uploadId}/batch?key=${filename}?partNumbers=${partNumbers.join(',')}`)
return this.client.get(`s3/multipart/${uploadId}/batch?key=${filename}&partNumbers=${partNumbers.join(',')}`)
.then(assertServerError)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/companion/src/server/controllers/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ module.exports = function s3 (config) {
.get('/params', getUploadParameters)
.post('/multipart', createMultipartUpload)
.get('/multipart/:uploadId', getUploadedParts)
.get('/multipart/:uploadId/batch', batchSignPartsUpload)
.get('/multipart/:uploadId/:partNumber', signPartUpload)
.post('/multipart/:uploadId/complete', completeMultipartUpload)
.get(`/multipart/:uploadId/batch`, batchSignPartsUpload)
.delete('/multipart/:uploadId', abortMultipartUpload)
}

Expand Down

0 comments on commit c556197

Please sign in to comment.