Skip to content

FileUpload doesn't work as intended in Repeater of Relation Manager #16253

@faizanakbar10

Description

@faizanakbar10

Package

filament/filament

Package Version

v3.3.14

Laravel Version

v12.13.0

Livewire Version

No response

PHP Version

8.2

Problem description

I have Brand Resource with Categories Relation Manager.

In Categories Relation Manager, I have repeater for Menu Items that has File Upload for image.

After submitting the form:
It doesn't let me click on the 'x' button to remove the image.
Also when changing the image, it doesn't work. Need to upload the image twice.

Expected behavior

On clicking 'x' it should remove the image as it does normally.
Uploading image on edit should work as intended.

Steps to reproduce

Use the repo I created.
In that first create a brand, then create category with menu items.
Now upload image for 1 menu item and save.
Now open the same category with menu item and try removing the image. Doesn't work.
Now try to change the image of that menu item, there will be an issue. Need to upload the same image twice.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/faizanakbar10/filament-fileupload-repeater-issue

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions