Преглед на файлове

doc: Sync AWS presigned URL example with S3 docs

Renée Kooi преди 7 години
родител
ревизия
243a1fa62c
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  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.