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

Format file size of p-fileupload #1297

Closed
pmeems opened this issue Nov 13, 2016 · 1 comment
Closed

Format file size of p-fileupload #1297

pmeems opened this issue Nov 13, 2016 · 1 comment

Comments

@pmeems
Copy link

pmeems commented Nov 13, 2016

As I mention here: http://stackoverflow.com/questions/40514986/how-tp-customize-primeng-p-fileupload it is very hard to customize the formatting of the file size in p-fileupload.
It now shows 3 digits which is very confusing.

Perhaps implementing this one is enough: https://github.com/RenovoSolutions/TypeScript-Angular-Utilities/blob/master/source/services/fileSize/fileSize.md

Also adding some option for the developer to easily override the used formatting is very welcome.

Related issue #1247

@cagataycivici
Copy link
Member

This should be fixed in recent PrimeNG release, please try with it and if the issue persists drop a comment with along with a test case based on plunkr below and we'll review again.

http://plnkr.co/edit/VZbdZfQ7SuTV87tTkbYR

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

2 participants