diff --git a/js/lbry.js b/js/lbry.js
index 7f8458e12..dffb903be 100644
--- a/js/lbry.js
+++ b/js/lbry.js
@@ -2,6 +2,7 @@ var lbry = {
isConnected: false,
rootPath: '.',
daemonConnectionString: 'http://localhost:5279/lbryapi',
+ webUiUri: 'http://localhost:5279',
colors: {
primary: '#155B4A'
},
diff --git a/js/page/publish.js b/js/page/publish.js
index 291aa4a05..26567b9f6 100644
--- a/js/page/publish.js
+++ b/js/page/publish.js
@@ -284,7 +284,7 @@ var PublishPage = React.createClass({
var formData = new FormData(fileInput.form);
formData.append('file', fileInput.files[0]);
- xhr.open('POST', '/upload', true);
+ xhr.open('POST', lbry.webUiUri + '/upload', true);
xhr.send(formData);
}
},
diff --git a/js/page/watch.js b/js/page/watch.js
index 31149fdec..4351c2132 100644
--- a/js/page/watch.js
+++ b/js/page/watch.js
@@ -47,7 +47,7 @@ var WatchPage = React.createClass({
?
:
);