Skip to content

Adding removeFile function to be passed to FileUpload file slot #6491

@cydrickn

Description

@cydrickn

Package

v4.x

Description

Currently we want to change how the file will be displayed.
example

<UFileUpload multiple layout>
<template #file={file, index}>
<div class="w-full">{{file}}</div>
<button @click="removeFile(index)"></button>
</template>
</UFileUpload>

So currently file slot only passed the file and index
but we need also the removeFile, for us to able to remove the file, where in the current code, the file removing is also part of the file slot.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv4#4488

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions