1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00
uguu/rain/cache/upload.e1ac13855adfa478d8926be2da304459.rtpl.php
James Dillon 0591f08bbf Adding error page
If a user tries to upload without a file selected, the user is
redirected to an error page instead of "You fucked up".
2015-10-05 18:18:37 +01:00

30 lines
1.3 KiB
PHP

<?php if(!class_exists('raintpl')){exit;}?><div class="container">
<form class="col s12" action="api.php?d=upload" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="150000000" />
<div class="file-field input-field">
<input class="file-path validate" type="text" readonly="readonly"/>
<div class="btn ie-btn-fix">
<span>File</span>
<input id="file" type="file" name="file" />
</div>
</div>
<p>
<input type="checkbox" id="randomname" name="randomname" />
<label for="randomname">Generate random filename</label>
</p>
<div class="row">
<div class="input-field col s12">
<input id="customname" type="text" name="name">
<label for="customname">Custom filename, e.g cat.flac (optional)</label>
</div>
</div>
<button class="btn waves-effect waves-light" type="submit">Upload
<i class="mdi-content-send right"></i>
</button>
</div>
</form>
</div>