From c87245320d4a8344b436174cc2c7c715c9482ee2 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 6 May 2011 22:37:42 +0100 Subject: [PATCH] fix #1481 file uploads from behind a reverse proxy --- deluge/ui/web/js/deluge-all/add/FileWindow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/add/FileWindow.js b/deluge/ui/web/js/deluge-all/add/FileWindow.js index 09fc870a9..0a42147e5 100644 --- a/deluge/ui/web/js/deluge-all/add/FileWindow.js +++ b/deluge/ui/web/js/deluge-all/add/FileWindow.js @@ -1,6 +1,6 @@ /*! * Deluge.add.File.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -78,7 +78,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, { if (this.form.getForm().isValid()) { this.torrentId = this.createTorrentId(); this.form.getForm().submit({ - url: '/upload', + url: deluge.config.base + 'upload', waitMsg: _('Uploading your torrent...'), failure: this.onUploadFailure, success: this.onUploadSuccess,