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
rewrite fileUpload template #31
Comments
As stated in the docs, you have to set name of the custom template to picture: {
type: String,
autoform: {
afFieldInput: {
type: 'fileUpload',
collection: 'Images',
previewTemplate: 'myFilePreview'
}
}
} You should be good with next markup:
What errors exactly? |
In my previous answer I gave you a template you need to implement your own file preview. No need to copy/paste whole Once again - template: <template name="myFilePreview">
<span>{{name}}</span>
<a data-remove-file href="#">Remove</a>
</template> |
@dr-dimitru thanks, it solved my issue. |
If Image was uploaded on behalf of logged in user, See |
yes, there is userId. I am Inattentive today ( |
@Aparus glad to help :) Please, support this project by:
|
what should I do with template, for add to it some elemets (like Remove button available only for admin etc)? when I just copy it and rename it fires errors. What should I pass to it and how...
fileUpload.html
The text was updated successfully, but these errors were encountered: