Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Progress bar support #14

Open
aldeed opened this issue Dec 10, 2014 · 6 comments
Open

Progress bar support #14

aldeed opened this issue Dec 10, 2014 · 6 comments

Comments

@aldeed
Copy link
Owner

aldeed commented Dec 10, 2014

@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
Copy link
Owner Author

aldeed commented Dec 10, 2014

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

@dpankros
Copy link
Collaborator

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.

@h4818
Copy link

h4818 commented Jan 16, 2015

Has the progressbar functionality been implemented yet?

@dpankros
Copy link
Collaborator

No. It hasn't been implemented but is in development.

On Jan 16, 2015, at 5:01 PM, Habib Ayob notifications@github.com wrote:

Has the progressbar functionality been implemented yet?


Reply to this email directly or view it on GitHub.

@brylie
Copy link

brylie commented Feb 3, 2016

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
Copy link

brylie commented Feb 3, 2016

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

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

No branches or pull requests

4 participants