Questions tagged [lightning-file-upload]
The lightning-file-upload tag has no usage guidance.
15 questions
1
vote
1
answer
53
views
Use lightning-file-upload in LWR with Guest user profile
I am having difficulties using lightning-file-upload in LWR using the guest user.
I have already enabled the options in Salesforce files > Settings
I have already enabled it in the community for ...
0
votes
1
answer
54
views
How to configure a lightning-file-upload file drop zone size?
I am trying to change siz e of lightning-file-upload component file drop-zone but didn't get the requested result:
My HTML
<lightning-card title="Upload CSV File and Update Record"...
0
votes
2
answers
192
views
How can I change the button label for lightning-file-upload?
I created a file upload function using lightning-file-upload, but the buttons display as Upload Files I would like to change these labels to Sales Tax. Is there a way to do this?
<lightning-...
0
votes
0
answers
80
views
Deleting uploaded files using a custom delete button
I have a custom lwc component to upload files to a record. I used Lightning file upload for this. And after files are uploaded I show them in the form of a datatable with a download button for every ...
0
votes
1
answer
65
views
Uploading files to Salesforce via external form is not working
There is an external form which allows Guest user to create a custom record using an LWC component.
A new requirement is to upload files/attachments and get that linked to created custom record.
We ...
0
votes
1
answer
128
views
How to use lightning-file-upload component on a not yet created record?
I have a community page where I have a order form and where I want the user to be able to upload files. But it seems like the record that the file will be "linked" too neeeds to be created ...
0
votes
1
answer
1k
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 ...
2
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
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
430
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
436
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
4k
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
6k
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
749
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
616
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 ...