Explorar el Código

Update aws-s3.md

Kévin Berthommier hace 7 años
padre
commit
de14092da2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      website/src/docs/aws-s3.md

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

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