Skip to content

Commit f04039b

Browse files
authored
Merge pull request #40 from MohammedEssehemy/master
Update README.md
2 parents f4be9c7 + 0480dc0 commit f04039b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 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],
141-
label: 'Choose file' # optional
140+
type: Array,
141+
label: 'Choose file' // <- Optional
142142
},
143143
"pictures.$": {
144+
type: String,
144145
autoform: {
145146
afFieldInput: {
146147
type: 'fileUpload',

0 commit comments

Comments
 (0)