Browse Source

tus: support metadata in remote uploads

ref transloadit/uppy-server@011dadbe476cd1a1d21fff5557cc2cf20c8d19dd
Renée Kooi 8 years ago
parent
commit
21de6664fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/plugins/Tus10.js

+ 2 - 2
src/plugins/Tus10.js

@@ -204,8 +204,8 @@ module.exports = class Tus10 extends Plugin {
         body: JSON.stringify(Object.assign({}, file.remote.body, {
           endpoint,
           protocol: 'tus',
-          size: file.data.size
-          // TODO add `file.meta` as tus metadata here
+          size: file.data.size,
+          metadata: file.meta
         }))
       })
       .then((res) => {