Skip to content

Commit 5befc78

Browse files
author
kongfang
committed
require book file when chick upload button
1 parent b636402 commit 5befc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/books.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div>
55
<form method="post" action="{{.urlPrefix}}/books/upload" enctype="multipart/form-data" class="grid">
66
<div>
7-
<input type="file" name="book" accept=".epub,.pdf,.fb2">
7+
<input type="file" name="book" accept=".epub,.pdf,.fb2" required>
88
</div>
99
<button style="flex-grow: 1;">Upload</button>
1010
</form>

0 commit comments

Comments
 (0)