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
rohit m 32rohit m 32 

LWC - increase file input size

I have Built LWC, using <lightning-input> where type is file. I am able to upload a file upto 4mb and how can increase more than 30mb
VinayVinay (Salesforce Developers) 
Hi Rohit,

The max content limit for lwc is 4MB.  You can use lightning:fileUpload or call rest API's.

https://salesforce.stackexchange.com/questions/251572/what-is-client-payload-data-limit-for-lwc/264604#264604

https://github.com/douglascayers/sfdx-lightning-api-component
https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar