From 7ebb5ce8ef276e6d23d818c216be6ef2974369cc Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 23 Jul 2026 19:46:59 +0200 Subject: Turn the asset upload forms into file drop targets Dropped files land in the existing file input and submit through the unchanged form. An empty name field is prefilled from the basename. --- app/views/assets/edit.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/views/assets/edit.html.erb') diff --git a/app/views/assets/edit.html.erb b/app/views/assets/edit.html.erb index 0c1dd8fe..d0a39aa3 100644 --- a/app/views/assets/edit.html.erb +++ b/app/views/assets/edit.html.erb @@ -14,7 +14,12 @@ <% end %>
<%= f.label :upload, "Replace file" %>
-
<%= f.file_field :upload %>
+
+
+ <%= f.file_field :upload %> +

…or drop a file here.

+
+
<%= f.label :creator %>
<%= f.text_field :creator %>
-- cgit v1.3