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

Expose fileSize variable in File picker component #9658

Open
GrowwithNaveen opened this issue May 9, 2024 · 0 comments
Open

Expose fileSize variable in File picker component #9658

GrowwithNaveen opened this issue May 9, 2024 · 0 comments
Labels

Comments

@GrowwithNaveen
Copy link
Collaborator

Problem Description
Currently, the File Picker component lacks the ability to expose the size of the selected file(s) after selection. This makes it difficult for users to:

  1. Validate file size before upload: Users might unintentionally choose files exceeding size limitations on servers or storage.
  2. Display file size information: Users have no way to see the size of the chosen file(s) within the application itself.

Solution (To be finalized)

  1. Expose File Size as a Variable: Introduce a new variable fileSize within the File Picker component that exposes the size of the selected file(s) in bytes. This variable could be accessed through the component properties panel or programmatically within event handlers.
  2. Display File Size in UI: Optionally, implement a way to display the file size directly within the File Picker UI. This could be achieved by adding a text element next to the filename that dynamically updates based on the selected file. Users can choose to enable/disable this feature in the component settings.
@GrowwithNaveen GrowwithNaveen changed the title Expose File Size variable in File picker component Expose fileSize variable in File picker component May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant