diff --git a/src/plugins/Transloadit/index.js b/src/plugins/Transloadit/index.js index 86d51749b..d72364bf7 100644 --- a/src/plugins/Transloadit/index.js +++ b/src/plugins/Transloadit/index.js @@ -190,7 +190,7 @@ module.exports = class Transloadit extends Plugin { // We only replace the hostname for Transloadit's uppy-servers, so that // people can self-host them while still using Transloadit for encoding. let remote = file.remote - if (file.remote && TL_UPPY_SERVER.test(file.remote)) { + if (file.remote && TL_UPPY_SERVER.test(file.remote.host)) { let newHost = assembly.uppyserver_url let path = file.remote.url.replace(file.remote.host, '') // remove tailing slash