FriendsOfCake / cakephp-upload

CakePHP: Handle file uploading sans ridiculous automagic
https://cakephp-upload.readthedocs.io/
MIT License
551 stars 255 forks source link

afterDeleteCommit support #507

Open tai-sho opened 5 years ago

tai-sho commented 5 years ago

When deleting records in a transaction, this plugin seems to delete images using the afterDelete method. If you roll back a transaction, there may be situations where you have records but only the images are gone. Is there a way to use afterDeleteCommit instead of afterDelete used in this plugins?

josegonzalez commented 5 years ago

Sure. pull requests welcome :)