nova-issues icon indicating copy to clipboard operation
nova-issues copied to clipboard

Cant remove images from repeater

Open gustavenoksson opened this issue 9 months ago • 11 comments

  • Laravel Version: 11.0
  • Nova Version: 5.0
  • PHP Version: 8.3
  • Database Driver & Version: mySQL 8
  • Operating System and Version: macOs Sonoma 14.5
  • Browser type and version: Chrome Version 133.0.6943.55 (Official Build) (x86_64)
  • Reproduction Repository: -

Description:

I have a repeater field on a Nova resource that has a text field and an image field in the repeater. Everything works except for when i try to remove the image from the repeater.

Image

The issue seems to be that the delete request url is wrong as it tries to remove a image_path field on the resource that where the repeater is placed in and not the repeater resource: DELETE http://localhost/nova-api/polls/10/field/image_path 404 (Not Found)

I have made sure to include a ->uniqueField('id') on the repeater.

It works to upload an image in the repeater and it also works to update the textfield, its only when i try to remove an image that i get an error.

gustavenoksson avatar Feb 20 '25 09:02 gustavenoksson