mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
file.remote --> file.remote.host, since remote is an object
//cc @goto-bus-stop @ifedapoolarewaju
This commit is contained in:
parent
a5f23c7fd5
commit
aa8247b6e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue