From aa8247b6e2aeffc5aa237b983d88faae53819133 Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Tue, 5 Jun 2018 20:16:58 -0400 Subject: [PATCH] file.remote --> file.remote.host, since `remote` is an object //cc @goto-bus-stop @ifedapoolarewaju --- src/plugins/Transloadit/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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