dropzone_input 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/dropzone_input/helpers.rb +10 -1
- data/lib/dropzone_input/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f03cfcfa9114f7c9121c5c82a9d307ce69c9a0c5a27789e906ed1692969234
|
4
|
+
data.tar.gz: 3d90a1417cacd85afb1ecb3558b5bad166c38df14512bc35e23578fed8d618d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8466730e8d6a1fac07e1ed5b9131559958e9848ce8ea2136cea37ae9d825e41d9efb5a530dc3da4187fb3a6fce142dc2de7d65c170b320a2a8237f295c98cca0
|
7
|
+
data.tar.gz: 4715a836cd355621bfd9091c2dd493e479f2f65d24d79df264158e616cfbd4f53e9b9a49c2359bb5934b521241fb128ba6a8c24e4783f4314da60faa51a42d81
|
data/README.md
CHANGED
@@ -6,6 +6,7 @@ A Rails helper and Stimulus Controller that makes adding dropzone to a Rails for
|
|
6
6
|
<%= form_with(model: User.new) do |form| %>
|
7
7
|
<%= dropzone form, :image,
|
8
8
|
file_success_event: 'USER_FILE_UPLOADED',
|
9
|
+
file_progress_event: 'USER_FILE_PROGRESS',
|
9
10
|
queue_complete_event: 'USER_FILE_UPLOAD_DONE' %>
|
10
11
|
<% end %>
|
11
12
|
```
|
@@ -12,7 +12,16 @@ module DropzoneInput
|
|
12
12
|
controller: 'dropzone',
|
13
13
|
dropzone_accepted_files: ActiveStorage.variable_content_types.join(',')
|
14
14
|
}
|
15
|
-
%i(
|
15
|
+
%i(
|
16
|
+
max_files
|
17
|
+
max_file_size
|
18
|
+
file_drop_event
|
19
|
+
file_progress_event
|
20
|
+
file_success_event
|
21
|
+
queue_complete_event
|
22
|
+
file_drop_id
|
23
|
+
file_drop_over_id
|
24
|
+
).each do |key|
|
16
25
|
data["dropzone_#{key}".to_sym] = options.delete(key) if options.key?(key)
|
17
26
|
end
|
18
27
|
|