Skip to content

Create a UFileUpload component #1422

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

Closed
lougea opened this issue Feb 26, 2024 · 4 comments
Closed

Create a UFileUpload component #1422

lougea opened this issue Feb 26, 2024 · 4 comments
Labels
enhancement New feature or request v3 #1289

Comments

@lougea
Copy link

lougea commented Feb 26, 2024

Description

Hey there! 👋 So, I've been using the UInput (file) component and while it's cool, I've noticed a few things that could make it even better with new component dedicated to file

Enhancements Needed:

  • Show a preview of the uploaded file 🖼️
  • Provide a FileObject to v-model instead of just returning the file path 📁
  • Support selecting multiple files 📂

#1311

Thanks for considering adding this new component! 🚀

(and thanks for your work !)

No response

@lougea lougea added the enhancement New feature or request label Feb 26, 2024
Copy link
Member

Not sure this deserve a proper component, what would it look like?

You can find an example on the Dashboard template using a UFormGroup, UAvatar, UButton and UInput: https://github.com/nuxt-ui-pro/dashboard/blob/main/pages/settings/index.vue#L102-L108

@KenZync
Copy link

KenZync commented Mar 28, 2024

the Uinput type file doesnt even work in demo

@benjamincanac benjamincanac added the v3 #1289 label Mar 28, 2024 — with Volta.net
Copy link
Member

We'll consider making such a component in v3!

@KenZync Thanks for pointing that out, it should now be fixed 😊

@rdjanuar
Copy link
Contributor

duplicate #1945

@rdjanuar rdjanuar closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

4 participants