meteor-cfs-autoform icon indicating copy to clipboard operation
meteor-cfs-autoform copied to clipboard

Progress bar support

Open aldeed opened this issue 10 years ago • 6 comments

@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.

aldeed avatar Dec 10 '14 19:12 aldeed

Could support both direct reference and string name, e.g., progressTemplate="myProgress".

aldeed avatar Dec 10 '14 19:12 aldeed

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.

dpankros avatar Dec 10 '14 19:12 dpankros

Has the progressbar functionality been implemented yet?

h4818 avatar Jan 16 '15 22:01 h4818

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.

dpankros avatar Jan 16 '15 22:01 dpankros

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.

brylie avatar Feb 03 '16 12:02 brylie

@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.

brylie avatar Feb 03 '16 12:02 brylie