2018-03-06 05:06:44 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>OnionShare</title>
|
2019-02-23 13:37:56 -05:00
|
|
|
<link href="/static/img/favicon.ico" rel="icon" type="image/x-icon">
|
2019-03-22 18:27:23 -04:00
|
|
|
<link rel="stylesheet" rel="subresource" type="text/css" href="/static/css/style.css" media="all">
|
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">
|
2019-02-23 18:22:44 -05:00
|
|
|
<!--
|
|
|
|
We are not using a <noscript> tag because it only works when the security slider is set to
|
|
|
|
Safest, not Safer: https://trac.torproject.org/projects/tor/ticket/29506
|
|
|
|
-->
|
|
|
|
<div id="noscript">
|
|
|
|
<p>
|
2019-03-11 02:27:17 -04:00
|
|
|
<img src="/static/img/warning.png" title="Warning" /><strong>Warning:</strong> Due to a bug in Tor Browser and Firefox, uploads
|
2019-02-23 18:22:44 -05:00
|
|
|
sometimes never finish. To upload reliably, either set your Tor Browser
|
|
|
|
<a rel="noreferrer" target="_blank" href="https://tb-manual.torproject.org/en-US/security-slider/">security slider</a>
|
|
|
|
to Standard or
|
|
|
|
<a target="_blank" href="/noscript-xss-instructions">turn off your Tor Browser's NoScript XSS setting</a>.</p>
|
|
|
|
</div>
|
|
|
|
|
2019-02-15 21:52:28 -05:00
|
|
|
<p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
|
2019-02-15 17:52:00 -05:00
|
|
|
|
2019-02-15 21:52:28 -05:00
|
|
|
<p class="upload-header">Send Files</p>
|
|
|
|
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
|
|
|
|
|
|
|
|
<div id="uploads"></div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<ul id="flashes" class="flashes">
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
|
{% if messages %}
|
|
|
|
{% for category, message in messages %}
|
|
|
|
<li class="{{ category }}">{{ message }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
</ul>
|
2018-03-07 13:12:10 -05:00
|
|
|
</div>
|
2019-02-15 21:52:28 -05:00
|
|
|
|
2019-05-21 13:18:40 -04:00
|
|
|
<form id="send" method="post" enctype="multipart/form-data" action="/upload">
|
2019-02-22 21:16:06 -05:00
|
|
|
<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>
|
|
|
|
|
2018-03-07 13:12:10 -05:00
|
|
|
</div>
|
2019-02-23 18:22:44 -05:00
|
|
|
<script src="/static/js/receive-noscript.js"></script>
|
2019-04-19 11:20:58 -04:00
|
|
|
<script src="/static/js/jquery-3.4.0.min.js"></script>
|
2019-03-22 18:23:53 -04:00
|
|
|
<script async src="/static/js/receive.js"></script>
|
2018-03-06 05:06:44 -05:00
|
|
|
</body>
|
|
|
|
</html>
|