Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
error

We made a wrong turn. Try again.

Hi,

i have requirement to upload a file clicking on a link on lightning component. is it possible to fire lightning:fileupload from controller.js?

Thanks

Prakash GB
4 answers
  1. Jan 17, 2019, 11:38 AM
    Arjun,

    I don't want to keep "Upload file" thing on my component. it  should be just like some url (example : add doc (http://google.com)). when clicking on that should ask user to choose file from his local drive.

    my idea to achieve this is using a lightning:fileupload component and hiding it. clicking on the URL should fire the ightning:fileupload component.

    Thnaks

    Prakash GB
0/9000