2019-10-22 15:49:57 +02:00
2019-04-28 15:27:55 +02:00
< head >
< title > VirtIT ft </ title >
< link rel = " stylesheet " type = " text/css " href = " <?php print(_HTTP_PATH . " style . css " ); ?> " >
2019-05-04 17:02:36 +02:00
< link rel = " icon " type = " image/x-icon " href = " <?php print(_HTTP_PATH . " favicon . ico " ); ?> " >
2019-04-28 15:27:55 +02:00
< script src = " <?php print(_HTTP_PATH . " script . js " ); ?> " ></ script >
2019-10-23 12:53:42 +02:00
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " >
2019-10-22 15:49:57 +02:00
< style >
@ font - face {
font - family : 'Roboto' ;
src : url ( '<?php print(_HTTP_PATH . "Roboto-Regular.woff2"); ?>' ) format ( 'woff2' ),
url ( '<?php print(_HTTP_PATH . "Roboto-Regular.woff"); ?> ' ) format ( 'woff' );
font - weight : normal ;
font - style : normal ;
}
</ style >
2019-04-28 15:27:55 +02:00
</ head >
< body >
2019-10-22 15:49:57 +02:00
< div class = core >
2019-04-28 22:30:23 +02:00
< h1 > File Transfer </ h1 >
2019-10-22 14:19:02 +02:00
< div id = dragzone class = dragndrop ondrop = " file_dropped(event); " ondragover = " return false " ondragenter = " change_color_ondrag('ondragenter'); " ondragleave = " change_color_ondrag('ondragleave'); " >
2025-07-31 10:00:20 +02:00
< span > Drag and Drop your file or < input class = " button " type = " button " value = " Select File " onclick = " file_explorer(); " ></ span >
< input type = " file " id = " uploadfile " hidden >
< small > ( Maximum < ? php print ( formatBytes ( _SIZE_LIMIT )); ?> )</small>
<div id=divresponse></div>
<div id="progress-container" style="display: none;">
<progress id="progress-bar" max="100" value="0"></progress>
<small id="progress-text">0%</small>
</div>
<button class="button" id=copytoclipboard style="visibility: hidden;" onclick="copytoclipboard();">Copy to clipboard</button>
2019-04-28 15:27:55 +02:00
</div>
2019-04-28 22:30:23 +02:00
<div class=infobox>
This tool is usable with <b>curl</b> or <b>wget</b>.<br><br>
2019-04-28 15:27:55 +02:00
2020-02-24 23:35:33 +01:00
To upload file (max <?php print(formatBytes(_SIZE_LIMIT)); ?>): <br>
2019-10-23 17:22:25 +02:00
<li> curl --upload-file ./my_file <?php print($uploadurl);?><br>
<li> wget -q --body-file='./my_file' --method=PUT -O - <?php print($uploadurl);?><br><br>
2019-04-28 22:30:23 +02:00
To download file :<br>
2020-12-15 01:53:49 +01:00
<li> curl -OJ <fturl><?php print($downloadurl . '99999');?><br></fturl>
<li> wget --content-disposition <fturl><?php print($downloadurl . '99999');?></fturl>
2019-04-28 22:30:23 +02:00
</div>
</div>
2019-10-22 15:49:57 +02:00
<footer>
File transfer was created by <a href="https://twitter.com/AmazingBeu">@AmazingBeu</a>. You can find sources <a href="https://git.virtit.fr/VirtIT/web-ft">here</a>.
</footer>
2019-04-28 15:27:55 +02:00
</body>
2020-12-15 01:53:49 +01:00
</html>