Browse Source

example/aws-php: make it forward-compatible with the next Uppy major (#4522)

Antoine du Hamel 1 year ago
parent
commit
2b26e646d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/aws-php/main.js

+ 2 - 0
examples/aws-php/main.js

@@ -11,6 +11,8 @@ uppy.use(Dashboard, {
   target: 'body',
   target: 'body',
 })
 })
 uppy.use(AwsS3, {
 uppy.use(AwsS3, {
+  shouldUseMultipart: false, // The PHP backend only supports non-multipart uploads
+
   getUploadParameters (file) {
   getUploadParameters (file) {
     // Send a request to our PHP signing endpoint.
     // Send a request to our PHP signing endpoint.
     return fetch('/s3-sign.php', {
     return fetch('/s3-sign.php', {