2018-03-06 05:06:44 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>OnionShare</title>
|
2018-03-06 06:03:24 -05:00
|
|
|
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon" />
|
|
|
|
<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
|
2018-03-06 05:06:44 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<header class="clearfix">
|
2018-03-06 06:03:24 -05:00
|
|
|
<img class="logo" src="/static/img/logo.png" title="OnionShare">
|
2018-03-06 05:06:44 -05:00
|
|
|
<h1>OnionShare</h1>
|
|
|
|
</header>
|
|
|
|
|
2018-03-07 13:12:10 -05:00
|
|
|
<div class="upload-wrapper">
|
|
|
|
<div class="upload">
|
|
|
|
<p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
|
|
|
|
<p class="upload-header">Send Files</p>
|
|
|
|
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
|
2019-02-12 20:49:42 -05:00
|
|
|
<form id="send" method="post" enctype="multipart/form-data" action="{{ upload_action }}">
|
|
|
|
<p><input type="file" id="file-select" name="file[]" multiple /></p>
|
|
|
|
<p><button type="submit" id="send-button" class="button">Send Files</button></p>
|
2018-03-14 11:16:09 -04:00
|
|
|
<div>
|
2018-07-16 21:45:14 -04:00
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
2018-03-14 11:16:09 -04:00
|
|
|
{% if messages %}
|
|
|
|
<ul class=flashes>
|
2018-07-16 21:45:14 -04:00
|
|
|
{% for category, message in messages %}
|
2019-02-14 12:31:39 -05:00
|
|
|
<li class="{{ category }}">{{ message }}</li>
|
2018-03-14 11:16:09 -04:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
2018-03-07 13:12:10 -05:00
|
|
|
</form>
|
2019-02-13 12:19:04 -05:00
|
|
|
|
2019-02-13 20:40:33 -05:00
|
|
|
<!-- We are not using a <noscript> tag because it only works when the security slider
|
2019-02-14 12:31:39 -05:00
|
|
|
is set to Safest, not Safer.
|
|
|
|
|
|
|
|
For more information about the upload issue:
|
|
|
|
https://github.com/micahflee/onionshare/issues/899
|
|
|
|
-->
|
2019-02-13 20:40:33 -05:00
|
|
|
<div id="noscript">
|
|
|
|
<p>
|
2019-02-14 12:31:39 -05:00
|
|
|
<strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads
|
|
|
|
sometimes never finish. To upload reliably, either set your Tor Browser
|
2019-02-13 20:40:33 -05:00
|
|
|
<a rel="noreferrer" target="_blank" href="https://tb-manual.torproject.org/en-US/security-slider/">security slider</a>
|
2019-02-14 12:31:39 -05:00
|
|
|
to Standard or
|
|
|
|
<a target="_blank" href="/noscript-xss-instructions">turn off your Tor Browser's NoScript XSS setting</a>.</p>
|
2019-02-13 20:40:33 -05:00
|
|
|
</div>
|
2018-03-07 13:12:10 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-12 20:49:42 -05:00
|
|
|
<script src="/static/js/receive.js"></script>
|
2018-03-06 05:06:44 -05:00
|
|
|
</body>
|
|
|
|
</html>
|