diff --git a/www/file/inner.js b/www/file/inner.js index efbbd46a4..6a78e5f45 100644 --- a/www/file/inner.js +++ b/www/file/inner.js @@ -59,6 +59,7 @@ define([ var secret; var metadataMgr = common.getMetadataMgr(); var priv = metadataMgr.getPrivateData(); + var fileHost = priv.fileHost || priv.origin; if (!priv.filehash) { uploadMode = true; @@ -88,7 +89,7 @@ define([ if (!uploadMode) { var hexFileName = secret.channel; - var src = Hash.getBlobPathFromHex(hexFileName); + var src = fileHost + Hash.getBlobPathFromHex(hexFileName); var key = secret.keys && secret.keys.cryptKey; var cryptKey = Nacl.util.encodeBase64(key);