浏览代码

companion: more comments

Ifedapo Olarewaju 5 年之前
父节点
当前提交
4e369d763f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/@uppy/companion/src/server/Uploader.js

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

@@ -344,7 +344,8 @@ class Uploader {
       uploadSize: this.bytesWritten,
       metadata: Object.assign(
         {
-          // file name and type as specified by tus protocol
+          // file name and type as required by the tusd tus server
+          // https://github.com/tus/tusd/blob/5b376141903c1fd64480c06dde3dfe61d191e53d/unrouted_handler.go#L614-L646
           filename: this.uploadFileName,
           filetype: this.options.metadata.type
         }, this.options.metadata