فهرست منبع

Add serverPattern to Transloadit Example (es6)

I guess this one also @goto-bus-stop @ifedapoolarewaju
Kevin van Zonneveld 6 سال پیش
والد
کامیت
13ab7672b8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      website/src/examples/transloadit/app.es6

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

@@ -57,7 +57,7 @@ function initUppy () {
       target: '#uppy-dashboard-container',
       target: '#uppy-dashboard-container',
       note: 'Images only, 1–2 files, up to 1 MB'
       note: 'Images only, 1–2 files, up to 1 MB'
     })
     })
-    .use(Instagram, { target: Dashboard, serverUrl: 'https://api2.transloadit.com/companion' })
+    .use(Instagram, { target: Dashboard, serverUrl: 'https://api2.transloadit.com/companion', serverPattern: /\.transloadit\.com$/  })
     .use(Webcam, { target: Dashboard })
     .use(Webcam, { target: Dashboard })
 
 
   uppy
   uppy