Ver Fonte

remove resume option from transloadit plugin (#3149)

Artur Paikin há 3 anos atrás
pai
commit
86cb2294b0

+ 0 - 1
packages/@uppy/transloadit/src/index.js

@@ -744,7 +744,6 @@ module.exports = class Transloadit extends BasePlugin {
         // Golden Retriever. So, Golden Retriever is required to do resumability with the Transloadit plugin,
         // Golden Retriever. So, Golden Retriever is required to do resumability with the Transloadit plugin,
         // and we disable Tus's default resume implementation to prevent bad behaviours.
         // and we disable Tus's default resume implementation to prevent bad behaviours.
         storeFingerprintForResuming: false,
         storeFingerprintForResuming: false,
-        resume: false,
         // Disable Companion's retry optimisation; we need to change the endpoint on retry
         // Disable Companion's retry optimisation; we need to change the endpoint on retry
         // so it can't just reuse the same tus.Upload instance server-side.
         // so it can't just reuse the same tus.Upload instance server-side.
         useFastRemoteRetry: false,
         useFastRemoteRetry: false,

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

@@ -37,7 +37,7 @@ function uppyInit () {
     logger: Uppy.debugLogger,
     logger: Uppy.debugLogger,
   })
   })
 
 
-  uppy.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/', resume: true })
+  uppy.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
 
 
   uppy.on('complete', result => {
   uppy.on('complete', result => {
     console.log('successful files:')
     console.log('successful files:')

+ 6 - 7
website/src/examples/markdown-snippets/app.es6

@@ -109,8 +109,8 @@ class MarkdownTextarea {
       waitForEncoding: true,
       waitForEncoding: true,
       params: {
       params: {
         auth: { key: TRANSLOADIT_EXAMPLE_KEY },
         auth: { key: TRANSLOADIT_EXAMPLE_KEY },
-        template_id: TRANSLOADIT_EXAMPLE_TEMPLATE
-      }
+        template_id: TRANSLOADIT_EXAMPLE_TEMPLATE,
+      },
     }).then((result) => {
     }).then((result) => {
       if (result === null) return
       if (result === null) return
       this.insertAttachments(
       this.insertAttachments(
@@ -127,15 +127,15 @@ class MarkdownTextarea {
       waitForEncoding: true,
       waitForEncoding: true,
       params: {
       params: {
         auth: { key: TRANSLOADIT_EXAMPLE_KEY },
         auth: { key: TRANSLOADIT_EXAMPLE_KEY },
-        template_id: TRANSLOADIT_EXAMPLE_TEMPLATE
+        template_id: TRANSLOADIT_EXAMPLE_TEMPLATE,
       },
       },
       providers: [
       providers: [
         'webcam',
         'webcam',
         'url',
         'url',
         'instagram',
         'instagram',
         'google-drive',
         'google-drive',
-        'dropbox'
-      ]
+        'dropbox',
+      ],
     }).then((result) => {
     }).then((result) => {
       if (result === null) return
       if (result === null) return
       this.insertAttachments(
       this.insertAttachments(
@@ -148,8 +148,7 @@ class MarkdownTextarea {
   }
   }
 }
 }
 
 
-const textarea = new MarkdownTextarea(
-  document.querySelector('#new textarea'))
+const textarea = new MarkdownTextarea(document.querySelector('#new textarea'))
 textarea.install()
 textarea.install()
 
 
 function renderSnippet (title, text) {
 function renderSnippet (title, text) {