mirror of
https://github.com/neocities/neocities.git
synced 2025-06-26 06:04:35 +02:00
improve file type message, fix missing directory for drag-n-drop
This commit is contained in:
parent
7dc4179bf8
commit
d2e2dd3482
2 changed files with 8 additions and 13 deletions
|
@ -109,6 +109,7 @@
|
|||
<form action="/site_files/upload" class="dropzone" id="uploads">
|
||||
<div class="dz-message" style="display: none"></div>
|
||||
<input name="csrf_token" type="hidden" value="<%= csrf_token %>">
|
||||
<input name="dir" type="hidden" value="<%= @dir %>">
|
||||
<div class="upload-Boundary <%= @file_list.length <= 5 ? 'with-instruction' : '' %>">
|
||||
<% @file_list.each do |file| %>
|
||||
<div class="file filehover">
|
||||
|
@ -240,7 +241,8 @@
|
|||
|
||||
this.on("error", function(file, errorMessage) {
|
||||
hideUploadProgress()
|
||||
alert('Failed: '+errorMessage)
|
||||
location.href = '/dashboard<%= @dir ? "?dir=#{@dir}" : "" %>'
|
||||
// alert('Failed: '+errorMessage)
|
||||
})
|
||||
|
||||
this.on("totaluploadprogress", function(progress, totalBytes, totalBytesSent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue