root/admin/filemanager/upload_file.tt
[%- meta.title = 'Upload a file' -%]
<form id="upload_file" method="post" action="upload" enctype="multipart/form-data">
<p>
<label for="upload">
Please select a file to upload
</label>
</p>
<p>
<input type="file" id="upload" name="upload">
</p>
<p>
<label for="subdir">
Select where to save your file
</label>
</p>
<p>
<select id="subdir" name="subdir">
<option value="">[% upload_dir %]</option>
[%- FOREACH subdir IN subdirs %]
<option value="[% subdir %]">[% upload_dir %]/[% subdir %]</option>
[%- END %]
</select>
</p>
<p>
<input name="submit" type="submit" value="Upload">
<input name="reset" type="reset" value="Reset">
</p>
</form>