Prechádzať zdrojové kódy

companion: more comments

Ifedapo Olarewaju 5 rokov pred
rodič
commit
4e369d763f

+ 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