Sfoglia il codice sorgente

doc: Sync AWS presigned URL example with S3 docs

Renée Kooi 7 anni fa
parent
commit
243a1fa62c
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      examples/aws-presigned-url/main.js
  2. 1 1
      website/src/docs/aws-s3.md

+ 1 - 1
examples/aws-presigned-url/main.js

@@ -33,7 +33,7 @@ uppy.use(AwsS3, {
       return {
         method: data.method,
         url: data.url,
-        fields: {}
+        fields: data.fields
       }
     })
   }

+ 1 - 1
website/src/docs/aws-s3.md

@@ -152,7 +152,7 @@ uppy.use(AwsS3, {
       },
       body: JSON.stringify({
         filename: file.name,
-        type: file.type
+        contentType: file.type
       })
     }).then((response) => {
       // Parse the JSON response.