File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ Upload and manage files with autoForm via [`ostrio:files`](https://github.com/Ve
88
99 - Install ` meteor add ostrio:autoform-files `
1010 - Install ` meteor add ostrio:files ` , * if not yet installed*
11+ - Add this config to ` simpl-schema ` NPM package (depending of the language that you are using):
12+ ``` javascript
13+ SimpleSchema .setDefaultMessages ({
14+ initialLanguage: ' en' ,
15+ messages: {
16+ en: {
17+ uploadError: ' {{value}}' , // File-upload
18+ },
19+ }
20+ });
21+ ```
1122 - Create your Files Collection (See [ ` ostrio:files ` ] ( https://github.com/VeliovGroup/Meteor-Files ) )
1223``` javascript
1324var Images = new FilesCollection ({
@@ -163,4 +174,4 @@ picture: {
163174<template name =" myFilePreview" >
164175 <a href =" {{file.link}}" >{{file.original.name}}</a >
165176</template >
166- ```
177+ ```
Original file line number Diff line number Diff line change @@ -13,7 +13,3 @@ AutoForm._globalHooks.onSuccess.push(function (type) {
1313 }
1414 }
1515} ) ;
16-
17- SimpleSchema . messages ( {
18- uploadError : '[value]'
19- } ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Package.describe({
22 name : 'ostrio:autoform-files' ,
33 summary : 'File upload for AutoForm using ostrio:files' ,
44 description : 'File upload for AutoForm using ostrio:files' ,
5- version : '1 .0.12 ' ,
5+ version : '2 .0.0 ' ,
66 git : 'https://github.com/VeliovGroup/meteor-autoform-file.git'
77} ) ;
88
@@ -14,7 +14,7 @@ Package.onUse(function(api) {
1414 'underscore' ,
1515 'reactive-var' ,
1616 'templating' ,
17- 'aldeed:autoform@5.8.1 ' ,
17+ 'aldeed:autoform@6.0.0 ' ,
1818 'ostrio:files@1.7.11'
1919 ] ) ;
2020
You can’t perform that action at this time.
0 commit comments