diff --git a/src/react-aws-s3.ts b/src/react-aws-s3.ts index 3038f5c..7799782 100644 --- a/src/react-aws-s3.ts +++ b/src/react-aws-s3.ts @@ -37,7 +37,7 @@ class ReactS3Client { ); fd.append("file", file); - const data = await fetch(url, { method: "post", body: fd }); + const data = await fetch(url, { method: "PUT", body: fd }); if (!data.ok) return Promise.reject(data); return Promise.resolve({ bucket: this.config.bucketName,