Drag'n Drop or choose ASCII-armored key file

This commit is contained in:
Simon Vareille
2020-06-13 16:47:37 +02:00
parent 80721b237e
commit e4d8e8a152
2 changed files with 53 additions and 2 deletions

View File

@@ -24,7 +24,9 @@
<div class="progress-bar progress-bar-striped active" role="progressbar"></div>
</div>
<form action="/pks/add" method="post">
<p><textarea class="form-control" name="keytext" rows="5" spellcheck="false" placeholder="Paste PGP PUBLIC KEY BLOCK here ..." required></textarea></p>
<p><textarea id="drop_zone" class="form-control ui-droppable" name="keytext" rows="5" spellcheck="false" placeholder="Drag a single ascii-armored key file here or paste PGP PUBLIC KEY BLOCK here ..." required></textarea></p>
<input type="file" id="file-selector" accept="text/plain" style="display:none">
<p>Or <button type="button" id="fileSelect">select a file</button> </p>
<input class="btn btn-primary btn-lg" type="submit" value="Upload">
</form>
<hr>