Browse Source

@uppy/companion: capitalize POST (#5198)

Mikael Finstad 11 months ago
parent
commit
8845939439

+ 2 - 0
docs/guides/migration-guides.md

@@ -16,6 +16,8 @@ These cover all the major Uppy versions and how to migrate to them.
   provider, you should not be affected.
   - The static `getExtraConfig` property has been renamed to
     `getExtraGrantConfig`.
+- Endpoint `GET /s3/params` now returns `{ method: "POST" }` instead of
+  `{ method: "post" }`. This will not affect most people.
 
 ### `@uppy/companion-client`
 

+ 1 - 1
packages/@uppy/companion/src/server/controllers/s3.js

@@ -80,7 +80,7 @@ module.exports = function s3 (config) {
       Key: key,
     }).then(data => {
       res.json({
-        method: 'post', // TODO: switch to the uppercase 'POST' in the next major
+        method: 'POST',
         url: data.url,
         fields: data.fields,
         expires: config.expires,