transloadit / uppy-server

[DEPRECATED] 'Uppy Server' was renamed to 'Companion' and lives inside the Uppy repo no
https://github.com/transloadit/uppy/tree/master/packages/%40uppy/companion
MIT License
114 stars 27 forks source link

Support tus uploadUrl parameter. #65

Closed goto-bus-stop closed 6 years ago

goto-bus-stop commented 6 years ago

Allows uploading to a tus endpoint if you don't actually get to create your own upload, like with Vimeo's upload API.

In the future we should make endpoint optional, which involves changing a bunch of checks throughout the Uploader class, but we can't do that yet because tus-js-client still requires an endpoint currently.

kvz commented 6 years ago

It seems this needs some TypeScript love still @ifedapoolarewaju @goto-bus-stop :

> tsc -p .
src/server/Uploader.js(165,31): error TS2339: Property 'uploadUrl' does not exist on type '{ endpoint: string; protocol: string; metadata: any; size: number; fieldname?: string; pathPrefix...'.

from: https://travis-ci.org/transloadit/uppy-server/builds/343400917#L3159