filestack-rails 4.0.6 → 4.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/lib/filestack_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bad0153c8be3d93667eab2aaff101faa8314a04
|
4
|
+
data.tar.gz: 50f7223d85f45c9cca7119ea963d6985592c6715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e277fa546e32a55e5191956fe99e7158142181bdb769213570871df6d8fe3ba7ba7487eaff64e757424885e6280b176fac8bcf1744c7fdce652e0839b766e59
|
7
|
+
data.tar.gz: ec8963c733fe13bf05033a55b8790e790868856a80ea2698be42dba604b12ce10a001ef74108b8a15a2b75728651be259c555c697d287679d72b82e711b89542
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<p align="center"><img src="
|
1
|
+
<p align="center"><img src="logo.svg" align="center" width="100"/></p>
|
2
2
|
<h1 align="center">Filestack::Rails SDK</h1>
|
3
3
|
<p align="center">
|
4
4
|
<a href="https://travis-ci.org/filestack/filestack-rails">
|
@@ -140,7 +140,13 @@ url = data.filesUploaded[0].url
|
|
140
140
|
For version `v3`, you can add following callbacks: `onOpen`, `onClose`, `onFileUploadFinished`, `onFileSelected`, `onUploadStarted`, to `pickerOptions`.
|
141
141
|
|
142
142
|
```erb
|
143
|
-
<%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { onClose: 'callbackOnClose', onOpen: 'callbackOnOpen' } %>
|
143
|
+
<%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { onClose: 'callbackOnClose', onOpen: 'callbackOnOpen', onFileUploadFinished: 'callbackOnFileUploadFinished' } %>
|
144
|
+
```
|
145
|
+
|
146
|
+
where following callbacks `callbackOnClose`, `callbackOnOpen`, `callbackOnFileUploadFinished` are javascript function's name and refer to your own created function. For instance:
|
147
|
+
|
148
|
+
```js
|
149
|
+
function onFileUploadFinishedCallback(data) {console.log(data);}
|
144
150
|
```
|
145
151
|
|
146
152
|
### Filestack Form Helper
|
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: 4.0.
|
4
|
+
version: 4.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- filestack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|