Closed kojot1234 closed 7 years ago
you see deleteCallback
option ?
Yes, that's how I got around right now but it seems like an unneeded workaround. I'm assuming the intended functionality should loop through and remove all fields set in the configuration and not quit on the first removal. Correct me if I'm wrong.
Mind making a pull request?
Closed as there is a PR open.
Problem only occurs when the first file in the field list is empty but the next one exists.
Since
afterDelete
runs through all configuration fields if it fails on the first field it exits and will not remove any other files that were marked for removal withkeepFilesOnDelete
.afterDelete
should either continue on unsuccessful deletion or delete should not happen at all.UploadBehavior.php