瀏覽代碼

companion: remove default upload protocol

Ifedapo Olarewaju 6 年之前
父節點
當前提交
046506cbe0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 2
      packages/@uppy/companion/src/server/Uploader.js

+ 1 - 0
CHANGELOG.md

@@ -107,6 +107,7 @@ PRs are welcome! Please do open an issue to discuss first if it's a big feature,
 - [x] @uppy/companion: investigate 423 and 500 issues with React Native + Url plugin when pause/resuming an upload
 - [x] dashboard: Bring back "Drop Here" screen for dragged URLs without introducing flickering (tricky! see PR #1400)
 - [x] companion: remove deprecated "authorized" endpoint
+- [x] companion: remove default upload protocol
 
 ## 1.0 Goals
 

+ 1 - 2
packages/@uppy/companion/src/server/Uploader.js

@@ -157,8 +157,7 @@ class Uploader {
    * @param {Buffer | Buffer[]} chunk
    */
   handleChunk (chunk) {
-    // @todo a default protocol should not be set. We should ensure that the user specifies her protocol.
-    const protocol = this.options.protocol || PROTOCOLS.multipart
+    const protocol = this.options.protocol
 
     // The download has completed; close the file and start an upload if necessary.
     if (chunk === null) {