meteor-cfs-autoform
meteor-cfs-autoform copied to clipboard
Progress bar support
@dpankros @yogiben, I had a thought regarding progress. What if it's just a generic ability to pass in a progress template, which we then include with a this.percent
context?
{{> afFieldInput name="myFile" type="cfs-file" progressTemplate=pt}}
<template name="myProgress">
{{this.percent}}% done
</template>
Template.registerHelper("pt", function () {
return Template.myProgress;
});
That way I have ultimate flexibility to render whatever I want as the progress bar. We could also have a default one.
Could support both direct reference and string name, e.g., progressTemplate="myProgress"
.
In theory, the only difference is the typeof the progressTemplate attribute. If it's a function, execute it. If it's a string render the template with that name.
I can't see any reason why supporting both would not be possible.
Has the progressbar functionality been implemented yet?
No. It hasn't been implemented but is in development.
On Jan 16, 2015, at 5:01 PM, Habib Ayob [email protected] wrote:
Has the progressbar functionality been implemented yet?
— Reply to this email directly or view it on GitHub.
Any status update on the progress bar? I have a usability issue on where large files do not seem to be ending up on the server, and users have no idea that the upload did not complete.
@jalik seems to have a file progress pattern in the UploadFS package. It might be worth seeing if the UploadFS package and cfs-autoform could work together.