Image.Uploader | Treinando ReactJS - Mini Projeto Uploader de Imagens | Frontend Framework library
kandi X-RAY | Image.Uploader Summary
kandi X-RAY | Image.Uploader Summary
Image.Uploader
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Image.Uploader
Image.Uploader Key Features
Image.Uploader Examples and Code Snippets
Community Discussions
Trending Discussions on Image.Uploader
QUESTION
Is there any option to catch the sonata batch action inside subscriber/listener ?
Already tried to use something like sonata.admin.event.persistence.pre_batch, but it doesn't work
Why I need that ?
When user will batch delete entities which contains images (there is working custom uploader sys behind it), then I should delete all images from fileSystem also.
My current configuration
(Everything works here and I want to also add pre_batch event, but so far no success)
...ANSWER
Answered 2018-May-30 at 09:40Sonata admin model manager (used by batch delete) is actually iterating over entities. So you could hook inside doctrine lifecycle callbacks and do your logic there.
But in general preBatch
action doesn't trigger any event, but you still can override this preBatchAction
in your admin class and trigger your event from there.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Image.Uploader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page