summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-05-21 10:18:40 -0700
committerMicah Lee <micah@micahflee.com>2019-05-21 10:18:40 -0700
commit63ced5625028f42331eab729639534c8064ba352 (patch)
tree18b8f1619f1862d9c31244c74b01b112392287a4 /share
parent97b5984afff1b00743380e775b961eac5ff3b3a7 (diff)
downloadonionshare-63ced5625028f42331eab729639534c8064ba352.tar.gz
onionshare-63ced5625028f42331eab729639534c8064ba352.zip
Update ReceiveMode to no longer rely on slugs
Diffstat (limited to 'share')
-rw-r--r--share/static/js/receive.js2
-rw-r--r--share/templates/receive.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/static/js/receive.js b/share/static/js/receive.js
index c29c726c..cbd60954 100644
--- a/share/static/js/receive.js
+++ b/share/static/js/receive.js
@@ -121,7 +121,7 @@ $(function(){
$('#uploads').append($upload_div);
// Send the request
- ajax.open('POST', window.location.pathname.replace(/\/$/, '') + '/upload-ajax', true);
+ ajax.open('POST', '/upload-ajax', true);
ajax.send(formData);
});
});
diff --git a/share/templates/receive.html b/share/templates/receive.html
index 4f207a03..dd36ac72 100644
--- a/share/templates/receive.html
+++ b/share/templates/receive.html
@@ -45,7 +45,7 @@
</ul>
</div>
- <form id="send" method="post" enctype="multipart/form-data" action="{{ upload_action }}">
+ <form id="send" method="post" enctype="multipart/form-data" action="/upload">
<p><input type="file" id="file-select" name="file[]" multiple /></p>
<p><button type="submit" id="send-button" class="button">Send Files</button></p>
</form>