Skip to main content
Priti Gohil (PwC) ha preguntado en #Apex
For example - If file extension is [pdf, docx, png] and size is certain it should allow to upload. When I write trigger on contentDocument it seems its not working correctly, can any one please guide 
3 respuestas
  1. 3 nov 2023, 17:31
    Hi @Kristiana Granger,

    Can you please share a bit more about the requirement, where do you have to show the error?  Do you want to call the apex method that validates file extension and size and then show the error on Aura/LWC?