Quellcode durchsuchen

Fix XHR upload demos, fixes #2517 (#2537)

Renée Kooi vor 4 Jahren
Ursprung
Commit
06f561c691

+ 1 - 1
examples/dev/Dashboard.js

@@ -30,7 +30,7 @@ const UPLOADER = 'tus'
 
 const COMPANION_URL = 'http://localhost:3020'
 const TUS_ENDPOINT = 'https://master.tus.io/files/'
-const XHR_ENDPOINT = 'https://upload-endpoint.uppy.io/upload'
+const XHR_ENDPOINT = 'https://xhr-server.herokuapp.com/upload'
 
 // DEV CONFIG: Transloadit keys
 

+ 1 - 1
website/src/examples/xhrupload/app.es6

@@ -15,7 +15,7 @@ uppy.use(ProgressBar, {
   hideAfterFinish: false
 })
 uppy.use(XHRUpload, {
-  endpoint: 'https://upload-endpoint.uppy.io/upload',
+  endpoint: 'https://xhr-server.herokuapp.com/upload',
   formData: true,
   fieldName: 'files[]'
 })

+ 1 - 1
website/src/examples/xhrupload/app.html

@@ -2,7 +2,7 @@
 <link rel="stylesheet" href="/uppy/uppy.min.css">
 
 <div class="UppyForm">
-  <form action="https://upload-endpoint.uppy.io/upload">
+  <form action="https://xhr-server.herokuapp.com/upload">
     <h5>Uppy was not loaded — slow connection, unsupported browser, weird JS error on a page — but the upload still works, because HTML is cool like that</h5>
     <input type="file" name="files[]" multiple="">
     <button type="submit">Fallback Form Upload</button>