Open Closed

File Management Module - File Uploaded Event? #3184


User avatar
0
barrett2474 created

We are using 5.22 Blazor-UI WASM multi-tenancy EF Core.

I would to be able to subscribe to the event that occurs when any Tenant uploads a file using the file Management module because (we need to process some actions based upon the file content).

In the doco it has: "This module doesn't define any additional distributed event. See the standard distributed events."

I would be grateful if i could be provided some guidance or short code sample as I don't understand "standard distributed events or how to hook into them.

Thank you! John


3 Answer(s)
  • User Avatar
    0
    barrett2474 created

    I read "Subscribing to the auto events is same as subscribing a regular distributed event" - so I'm guessing if there are no distributed events published for the File Management Module then as alternative i could somehow hook into the events at the EF level.

    Just posting my thoughts but would still appreciate the experts opinion! :-)

  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try subscribing a EntityCreatedEto<FileDescriptorEto> event

    public class My...Handler:  IDistributedEventHandler<EntityCreatedEto<FileDescriptorEto>>, ITransientDependency
    {
       //.....
    }
    
  • User Avatar
    0
    barrett2474 created

    Thank you once again!

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20