vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] VFileUpload: Add props rules

Open melondoto opened this issue 7 months ago • 2 comments

Problem to solve

i can't check validation for my file on VFileUpload, i want to make sure the file is still valid from the type and size of file

Proposed solution

adding props rules for VFileUpload

melondoto avatar Jun 13 '25 13:06 melondoto

We have a composable for rules have you tried looking into it? Here is the documentation for it: https://vuetifyjs.com/en/blog/announcing-vuetify-3.8/#userules-composable

jcjp avatar Jun 14 '25 11:06 jcjp

my problem is VFileUpload can't provide rules props

example: <v-file-upload accept="image/*" v-model="modelView" :title="title" density="compact" variant="compact" clearable show-size :rules="required">

based on documentation, VFileUpload has no rules props

melondoto avatar Jun 16 '25 03:06 melondoto

By the way: The docs for the useRules composable are wrong and should be revised. (PR: https://github.com/vuetifyjs/vuetify/pull/21267) Thx :-)

Flo0806 avatar Jul 02 '25 09:07 Flo0806