yogiben / meteor-autoform-file

Upload and manage files with #autoForm
MIT License
92 stars 101 forks source link

previewTemplate don't working #99

Open demiantriebl opened 8 years ago

demiantriebl commented 8 years ago

i have my code

archivito: {
        type: String,
        autoform: {
            type: 'fileUpload',
            collection: 'images',
            previewTemplate: 'myFilePreview',
            accept: 'image/*',
            uploadProgressTemplate: 'progress'
        }
    },

and in blaze

<template name="myFilePreview">
    epa!!!
    <a href="{{images.url}}">{{images.original.name}}</a>
    {{> afFieldInput name='Artista' class='Artista' placeholder='Artista'}}
    {{> afFieldInput name='webArtista' class='webArtista' placeholder='Web del Artista'}}
</template>

the file is uploaded good, and i see the preview, but is the default preview, and i need the insert another field on the database only after of the file is uploaded, do you any clue to solve this?