Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [lightning-file-upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

upload a file using <lightning-file-upload> on the click of a button or remove the file upload on the click of a button?

I want to upload a file of the click of "save" btn and not upload it if the user click on "cancel" btn. But as soon as i select a file it automatically gets stored in data base ...
0 votes
1 answer
213 views

How to display a list of attachments that are related with a record?

I am looking for a solution to display a list of attachments that are related with a record without allowing the user to delete the existing files and preventing him from uploading files in this ...
0 votes
1 answer
2k views

Filereader.readasDataUrl is not throwing error when file is uploaded through lightning-file-upload

I have an LWC component which takes xlsx/xlsm file as input and sends the file data to an API as input. Initially, I used lightning-input with type=file which is working as expected for files <3MB ...
0 votes
1 answer
366 views

Salesforce: Read email attachments on file upload LWC

I used lightning-file-upload to allow Users to upload files. Now, one of the use cases is, if the file is an email (.msg file type), we need to split the attachments and upload them as individual ...
0 votes
1 answer
394 views

Upload file : File Selector style

Is there a method to delete the Or drop Files and change the Upload Files with Upload Picture ? <lightning-layout-item style="width:35%"> <lightning-spinner if:...
1 vote
1 answer
3k views

How to change default file upload size limit in salesforce?

In the documentation of lightning-file-upload it is stated that 'By default, you can upload up to 10 files simultaneously unless your Salesforce admin has changed that limit. The org limit for the ...
0 votes
1 answer
5k views

How to get the uploaded file's size when using lightning-file-upload?

I've tried the following but it returns 'undefined. event.detail.files[0].size
1 vote
1 answer
658 views

How to resize the <lightning-file-upload> modal on a phone in lightning web component?

I'm trying to resize the standard modal which is shown after I click on the < lightning-file-upload > tag and select images. The reason for this is because when a page is zoomed in on a phone ...
0 votes
0 answers
574 views

How to extend lightning-file-upload functionality?

We are Salesforce Files users. We use the ContentDocuments object and create multiple ContentVersions per ContentDocument. I have been implementing a new tool to upload files and I evaluated 2 ...