filestack-rails 5.3.1 → 5.4.0
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 -1
- data/app/helpers/filestack_rails/form_helper.rb +1 -1
- data/lib/filestack_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8d4b048a84d95da691409af0cddb0fed8b84742f4727882959cc97ea1e4ffee
|
4
|
+
data.tar.gz: 24b8b3bdfd42fe57585c9a07d07e55b41f6bd8595a9b9947e81c8970ddd9788a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32cf6fcbe623af0eed119d818eea4a916dd957612d315646ce44f5c4439e1a6de9c092131ac6d403d607180ed1ab8aba98bc435708e829c1bd06e5523f045376
|
7
|
+
data.tar.gz: be03c90191b725bdbc500cb6a246e4925b6d3fead3e4ef1fbed7ee2bf3070cf44ddcd256317b32ec189041e19fad7919831040cf391fd01dd7f18a9b0e21ed92
|
data/README.md
CHANGED
@@ -119,7 +119,7 @@ You can also generate a new security object at any time, although this will only
|
|
119
119
|
This is a generic button that can be added anywhere in your application and opens an instance of the File Picker. Once a user has chosen a file(s) and submitted, a callback will be executed, passing in the results. You can also pass in any options for the File Picker using the `pickerOptions` symbol:
|
120
120
|
|
121
121
|
```erb
|
122
|
-
<%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { 'fromSources'
|
122
|
+
<%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { 'fromSources': 'facebook', 'maxFiles': 50 } %>
|
123
123
|
```
|
124
124
|
File Picker options are exactly the same as in the Javscript SDK and can be found in the aforementioned documentation.
|
125
125
|
|
@@ -17,7 +17,7 @@ module FilestackRails
|
|
17
17
|
|
18
18
|
form_field_callback_guts = 'const filestack_input_field' \
|
19
19
|
"= document.getElementById('#{input_options[:id]}');" \
|
20
|
-
'filestack_input_field.value = data.filesUploaded
|
20
|
+
'filestack_input_field.value = data.filesUploaded.map(e => e.url);'
|
21
21
|
|
22
22
|
unless user_callback.nil?
|
23
23
|
form_field_callback_guts = "#{form_field_callback_guts}#{user_callback}(data)"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filestack-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- filestack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|