Skip to content

Commit f50d847

Browse files
Update README.md
1- update schema to match aldeed:autoform 6+ [#39](#39 (comment)). 2- does not support yet => not fully supported yet.
1 parent f4be9c7 commit f50d847

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Generate the form with `{{> quickform}}` or `{{#autoform}}` e.g.:
127127

128128
Autoform should be wrapped in `{{#if Template.subscriptionsReady }}` which makes sure that template level subscription is ready. Without it the picture preview won't be shown. You can see update mode example [here](https://github.com/VeliovGroup/meteor-autoform-file/issues/9).
129129

130-
### Multiple images //does not support yet
130+
### Multiple images // not fully supported yet
131131
If you want to use an array of images inside you have to define the autoform on on the [schema key](https://github.com/aldeed/meteor-simple-schema#schema-keys)
132132

133133
```javascript
@@ -137,10 +137,11 @@ Schemas.Posts = new SimpleSchema({
137137
max: 60
138138
},
139139
pictures: {
140-
type: [String],
140+
type: Array,
141141
label: 'Choose file' # optional
142142
},
143143
"pictures.$": {
144+
type: String,
144145
autoform: {
145146
afFieldInput: {
146147
type: 'fileUpload',

0 commit comments

Comments
 (0)