function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sundar K 12Sundar K 12 

Lightning Web Components file upload is not working

Hi Team,

I tried lightning-file-upload in my component. It s always set as Disabled. Can you pls check and resolve this issue ASAP?

 

Note : disabled tag is set as inbuilt.

 

file-upload functionality is not working properly

sesha boddapatisesha boddapati
Hi All,
   
       I have same error on this any one can help me this.


Thanks, Sesha.
 
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi sundar,
Check if you are using this component inside an app.
File upload component is not supported in Lightning Out or standalone apps, and displays as a disabled input. 

Please refer below link which might help you in this
https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards
Sundar K 12Sundar K 12

Hi Devi Chandrika ,

 

I ve checked this that im using in app only. but still it is not working in Home Page.

Note : 

//XML file 

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="fileUploadLWCdemo">
    <apiVersion>48.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__AppPage</target>
        <target>lightning__RecordPage</target>
        <target>lightning__HomePage</target>
        <target>lightning__Tab</target>
    </targets>
</LightningComponentBundle>

Tab/Home page it is not working.

Tab/ Home Page it is not working. Pls let me know, how we can enable this ?

Thanks
Sundar K
 

Sundar K 12Sundar K 12
HI Team,

Im creating one form builder in custom tab for uploading csv file.

Can you pls tell me how to display the file-upload button here ?

Thanks
Sundar K