uploads: add max filesize to upload page.

Fixes #4172.
This commit is contained in:
evazion
2019-09-22 19:17:49 -05:00
parent 79c22b8d50
commit e1cdcbd4ce
2 changed files with 5 additions and 3 deletions

View File

@@ -3,13 +3,14 @@
padding: 0;
min-height: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 4px;
cursor: pointer;
position: relative;
&.dz-started .placeholder {
&.dz-started .dropzone-hint {
display: none;
}

View File

@@ -36,7 +36,8 @@
</div>
<div class="input" id="filedropzone">
<div class="placeholder">Click or drag and drop to upload a file</div>
<div class="dropzone-hint">Click or drag and drop to upload a file</div>
<div class="dropzone-hint hint">Max size: <%= number_to_human_size(Danbooru.config.max_file_size) %>. Supported filetypes: jpg, png, gif, swf, mp4, webm.</div>
</div>
<div class="input">
@@ -147,7 +148,7 @@
init: function() {
$(".fallback").hide();
this.on("drop", function(event) {
$("#filedropzone .placeholder").hide();
$("#filedropzone .dropzone-hint").hide();
});
this.on("complete", function(file) {
$("#filedropzone .dz-progress").hide();