Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3.04k stars 885 forks source link

fix uploads not returning the correct request name #5414

Closed pxpm closed 7 months ago

pxpm commented 7 months ago

WHY

BEFORE - What was wrong? What was happening before this PR?

reported in https://github.com/Laravel-Backpack/CRUD/issues/5411

The name used by the uploader to get the values from the request was not properly built and that was preventing from deleting files in upload_multiple uploaders.

AFTER - What is happening after this PR?

It properly builds the name, and it works as expected.

HOW

How did you achieve that, in technical terms?

created a getter for the request name in the Uploader class.

Is it a breaking change?

No

How can we test the before & after?

Follow the steps in https://github.com/Laravel-Backpack/CRUD/issues/5411#issuecomment-1872089352