Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

previewTemplate don't working #99

Open
demiantriebl opened this issue Mar 7, 2016 · 0 comments
Open

previewTemplate don't working #99

demiantriebl opened this issue Mar 7, 2016 · 0 comments

Comments

@demiantriebl
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant