Please enable JavaScript
Using Salesforce Apex and FileReader() and encodeURIComponent() from JavaScript, we can easily upload a file using Lightning Web Component lightning:input of type file. Blog Post: https://www.infallibletechie.com/2023/08/salesforce-lightning-web-component-lightning-input-file-upload.html