Recommend configuring Uppy to use relative paths

That should always work, regardless of whether the app is running locally or remotely, so users can just copy-paste this.
parent bda34237
...@@ -97,12 +97,13 @@ POST /s3/multipart/:uploadId/complete ...@@ -97,12 +97,13 @@ POST /s3/multipart/:uploadId/complete
DELETE /s3/multipart/:uploadId DELETE /s3/multipart/:uploadId
``` ```
Finally, in your Uppy configuration pass your app's URL as the `serverUrl`: Finally, in your Uppy configuration set `serverUrl` to your app's URL or an
empty string:
```js ```js
// ... // ...
uppy.use(Uppy.AwsS3Multipart, { uppy.use(Uppy.AwsS3Multipart, {
serverUrl: 'https://your-app.com/', serverUrl: '', // uses relative URLs (pass 'https://your-app.com' for absolute URLs)
}) })
``` ```
...@@ -163,12 +164,13 @@ map "/s3" do ...@@ -163,12 +164,13 @@ map "/s3" do
end end
``` ```
In your Uppy configuration point the `serverUrl` to your application: In your Uppy configuration set `serverUrl` to your app's URL or an empty
string:
```js ```js
// ... // ...
uppy.use(Uppy.AwsS3Multipart, { uppy.use(Uppy.AwsS3Multipart, {
serverUrl: "https://your-app.com/", serverUrl: '', // uses relative URLs (pass 'https://your-app.com' for absolute URLs)
}) })
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment