Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
11 votes
2 answers
9k views

How to upload larger size file using input tag of type html in LWC

I have implemented custom file upload component using input file html tag and rendering it as browse file button. The issue with component is:- When trying to upload file more than 4 mb of size, i ...
Vikas V's user avatar
  • 111
7 votes
4 answers
4k views

Winter 20 breaks communities guest file upload

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments to their created records. The guest user creates a new record via a global action which ...
J Dubbs's user avatar
  • 382
7 votes
1 answer
1k views

What setting controls how many files you can upload simultaneously using lightning:fileUpload?

I want to use <lightning:fileUpload/> to upload multiple files in my lightning component. In the documentation for this component, it is said that: By default, you can upload up to 10 files ...
Oles Malkov's user avatar
  • 2,161
6 votes
1 answer
332 views

Is there any difference between the heap consumption in sandbox and production orgs?

After creating a custom file-uploader lightning component we had the following problem : The amount of data to be passed from lightning controller to server-side controller (apex) was limited (...
Osama Awad's user avatar
5 votes
3 answers
13k views

Correct approach uploading File using REST API (file size 100 MB)

Looking for best REST API to upload a file to a record with at least file size 100MB? I have created custom REST API handles POST call, inserts both ContentVersion, ContentDocumentLink records (Base ...
Mahesh Pasupuleti's user avatar
5 votes
2 answers
2k views

Customize the Size of Lightning-File-Upload

I would like to customize the size of the lightning-file-upload so that the 'dotted'/drag-n-drop area is larger. I don't see any documentation on changing that. Here is an example of what I am ...
Max's user avatar
  • 476
5 votes
0 answers
2k views

Scan uploaded files for viruses

I have a public Salesforce Community that I use like Web To Case - for clients to create new cases in my org. For implementing that, I have developed a lightning web component that creates a case. ...
Itai Shmida's user avatar
  • 4,995
4 votes
1 answer
4k views

Uploading Multiple file using fileReader in lwc

I am trying to upload multiple files using lightning-input type="file" below is the code. HTML <lightning-input type="file" onchange={handleOnFileUpload} name="uploadFile&...
SFDC_Beginner's user avatar
4 votes
3 answers
10k views

File Upload component in Flow - no indication that files where uploaded

I am using the File Upload component in Flow. It works good, but I have no indication that the files where uploaded. So the flow looks exactly the same before and after I upload files: Before ...
Itai Shmida's user avatar
  • 4,995
4 votes
3 answers
4k views

How to show custom error message in lightning-file-upload in lightning web component

I need to show a custom error message in lightning-file-upload when we tried to upload the unacceptable format of the file. <lightning-file-upload label="Attach receipt" ...
sanket kumar's user avatar
3 votes
1 answer
2k views

LWC: Standard file upload does not update field in file-field-name attribute

I'm using my LWC to upload photos as Files for a specific Custom Object within a community. <lightning-file-upload label="Upload your photo" record-id={obj.Id} onuploadfinished={...
user3529582's user avatar
3 votes
1 answer
2k views

Is it possible to upload files as a guest user in a community?

Is it possible to upload files as a guest user in a community? I am using a lightning web component lighting-file-upload component with a case's id as the recordId. The file upload works for ...
Sarah Ganci's user avatar
3 votes
1 answer
6k views

Lightning File Upload Component - Event Not Firing

I have implemented the lightning:fileUpload component within my own component, and I've used the sample code provided in order to test it out. The issue I'm having is that it looks like the event ...
Justin Stroud's user avatar
3 votes
1 answer
3k views

LWC: Maximum Blob Size From JS To APEX

I want to make a "custom file upload" LWC component as I am in need to build a specific design for an upload process. There are a few things I am not sure about. What would be the maximum size of a ...
Arthlete's user avatar
  • 4,857
3 votes
2 answers
3k views

Where is a File's "Customer Access" status located?

Background (This question is a more specified version of ytiq's question File "Customer Access" Permissions) Salesforce Lightning now requires that a file have the "Customer Access" toggle set to "...
Jwok's user avatar
  • 767
3 votes
1 answer
1k views

Experience Site: Lightning-file-upload Issue

I have created an unauthenticated LWR experience site and added a simple LWC component. The component contains a lightning-file-upload component. If I upload a file using it, the component disappears ...
SFDC_BigDog's user avatar
3 votes
1 answer
9k views

Guest users are unable to upload a file in a community

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments. At the point of creation the attachments have no parent and are assigned to the default ...
Dan Beer's user avatar
3 votes
1 answer
411 views

Unable to upload a file in login flow

Is there a known issue with file upload in flow login? Because, I don't have problems in upload a file with the same flow attached to a record page, but when is inside a login flow the same flow is ...
Wiidialga18's user avatar
3 votes
1 answer
3k views

Community - Flow - Upload File to custom object fails with error 'Can't upload ...'

This error shows up while trying to upload a file from within a community flow as a registered user and to a custom object created by the registered user himself: I'm using the standard lightning ...
Eduardo López's user avatar
2 votes
1 answer
8k views

Error: Received exception event aura:systemError from server

I have create a file upload wizard (using lightning:input type="file") in which am trying to upload file upto 5MB. Am able to successfully upload file till 2.8MB but not sure after that am ...
user3012372's user avatar
2 votes
1 answer
591 views

Override the lightning-file-upload error message with addError message in LWC

I have a Trigger written on ContentDocumentLink, which validates file attached on Opportunity. If there are any errors then we are using addError() in the Trigger to display those errors. On UI it is ...
sfdc07's user avatar
  • 584
2 votes
1 answer
2k views

How to upload a New Version of an existing File using lightning:fileUpload lightning base component?

Does anyone have an idea about uploading a new version of a File in Lightning Component using the base lightning component lightning:fileUpload? I tried passing ContentDocumentId into recordId ...
VarunC's user avatar
  • 5,900
2 votes
1 answer
1k views

How to identify which lightning:fileUpload was clicked

I am using lightning:fileUpload multiple times inside aura:iteration. After the button was clicked and the file was uploaded, I am using onuploadfinished event to do some stuff, but I need to ...
Itai Shmida's user avatar
  • 4,995
2 votes
1 answer
2k views

lightning:fileUpload displayed as disabled in community

I'm trying to implement file upload functionality following the instructions in the documentation. But the uploader is being displayed as a disabled input. <aura:component implements="...
Avinash's user avatar
  • 2,081
2 votes
2 answers
2k views

LWC File Upload component ignores accept setting for drag-and-drop

There is a strange behaviour in LWC File Upload component. There are two ways how files can be uploaded through this component. The user can: Select a file on your system by clicking the button to ...
Patlatus's user avatar
  • 16k
2 votes
1 answer
1k views

Rich Text pictures - how to find and manage them

is there a way to find and address picture uploaded via Rich text editor? How they are stored in system? Can reuse uploaded files somehow in different rich text field?
Artur Kępczyński's user avatar
2 votes
2 answers
2k views

lightning:fileupload - Override default error message when unacceptable file format is uploaded

I am using lightning:fileupload in my lightning page. It works fine, but I am unable to override the default error message displayed (your company does not allow the file format...etc). Business wants ...
vardi's user avatar
  • 21
2 votes
1 answer
464 views

lightning:fileupload issue in salesforce1

I am trying to upload/attach files to a record using the lightning tag 'lightning:fileUpload'. I have used this tag inside a component and used the component inside an App It works fine when ...
amel janardan's user avatar
2 votes
1 answer
3k views

How to trigger the click event of <lightning:fileUpload>

I want to display the lightning:fileUpload differently After many tryouts with css hacks, I decided this is not good enough My current approach is to create a different button, and upon clicking on ...
Itai Shmida's user avatar
  • 4,995
1 vote
3 answers
9k views

using Lightning:fileUpload to attach files to a record that isn't created yet

I am building a lightning component to replace the standard "Contact Support" form on our lightning community. Lightning is new territory for me, so I am learning all I can from documentation. I ...
Morgan Marchese's user avatar
1 vote
1 answer
2k 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 ...
adnan_aust's user avatar
1 vote
2 answers
1k views

Can you use lightning-file-upload without saving?

In LWC, is it possible to use the lightning-file-upload component without saving the file to a ContentDocument? I am going to be uploading it to another server via an API and don't need/want it saved ...
aaron's user avatar
  • 855
1 vote
2 answers
2k views

Can you upload a file from a Cloudpage into a Marketing Cloud FTP

I'm wondering if it's possible to use a form upload on a Cloudpage to upload a file into our Marketing Cloud FTP? Thanks in advance! -Nikki
Nikki's user avatar
  • 25
1 vote
1 answer
1k views

File Upload Making as Public - Image is not Showing in HTML img tag

I am Uploading the Image from LWC page by using lightning-file-upload and Making the Image as Public accessible as Below ContentVersion cv = [select id from contentversion where contentdocumentid =:...
SFDC_Beginner's user avatar
1 vote
2 answers
8k views

LWC Custom file-upload without file size limit 4Mb

Does anyone know the way to write custom file-upload on lwc based on html input and file size limit at least 20Mb?
Yevhen Kharchuk's user avatar
1 vote
2 answers
3k views

How to make lightning:fileUpload component required field on flows?

I am using lightning:fileUpload component in flows embedded on community page. I want to make this mandatory/ required so that the user sees an error if they click next without uploading a file. I ...
user74813's user avatar
1 vote
1 answer
3k views

Trigger on content document to retrieve the body

I believe this question is a possible continuation of this other question: How to retrieve the file content for a ContentDocument object? I am trying to get the body of a JSON file that is uploaded ...
manza's user avatar
  • 1,945
1 vote
1 answer
1k views

Lightning File upload to refresh a child component after file upload

I am trying to do 2 things here 1.Custom file upload using Lightning:fileupload 2. List of files attached to the same record. I an hoping after a file is uploaded, the list should refresh after the ...
Hara Prasad Sahoo's user avatar
1 vote
1 answer
169 views

Image limits in Content builder

I found that there is a limit on the size of the image (5 MB) in Content builder https://help.salesforce.com/s/articleView?id=sf.mc_ceb_supported_file_types.htm&type=5 But is there any limit on ...
Tom's user avatar
  • 9
1 vote
1 answer
838 views

'Upload files or drop files' to 'Upload file or drop file'

How can I change the 'Upload files or drop files' text to 'Upload file or drop file'. When I am allowing single file upload in lightning-input component.
Akshita Gupta's user avatar
1 vote
1 answer
512 views

Is there a way to upload/insert a particular custom object record and its related file document from one single csv file using data loader?

Hi it would be great if anyone could help me out with this. I have encountered a requirement in salesforce where I have to upload/insert a custom object record and its related file attachment into ...
Muhammed Rishdhi's user avatar
1 vote
2 answers
3k views

Unable to upload large files (not above 4MB) as attachment with apex class method from LWC. How to overcome this issue?

LWC method to convert selected file content to base64 String and call the apex method for uploading as related Notes and Attachment on a particular record myComponent.js const toBase64 = file => ...
AdityaHM's user avatar
  • 133
1 vote
1 answer
1k views

Is it possible to delete files as a guest user in a community?

Background: I have a form in a community that creates a case, and then sets that case record id on a lightning-file-upload component which allows users to upload files and attach them to the case ...
Sarah Ganci's user avatar
1 vote
1 answer
1k views

Use visualforce page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader

Is it possible to use a Visualforce Page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader? I have an object NEILON__File__c. The object in its Buttons, ...
iloveseven's user avatar
  • 1,105
1 vote
1 answer
1k views

Max file size to upload to database when using input type file is not 4.5 MB

Max file size in 4500000 bytes which is almost equal to 4.3Mb not 4.5 Mb I see many blog wrote as 4.5 Mb Using input type file is not allowing to save 4.5 MB but it is allowing upto 4.3 MB Is my ...
RaJu's user avatar
  • 361
1 vote
3 answers
4k views

Hot to change the button label for lightning-file-upload?

I created file upload function using lightning-file-upload. Its buttons are showed "uplopadFiles" and "ordrop files". I would like to change those to proper Japanese. Could you ...
Ara's user avatar
  • 13
1 vote
1 answer
168 views

when running test class, encountering runAs() issues with user having insufficient access to upload resume

I am encountering an issue with running my test class as a made-up user. It seems like I have insufficient access to uploading files onto the org, anyone would be able to point me in the right ...
Bartek 's user avatar
1 vote
1 answer
2k views

Image Upload in LWC - Public Link

Trying to Upload image file in LWC by using lightning-file-upload Below is My Code. Is there any Way i can get the Public Link once upload got Successfully in LWC? HTML <lightning-file-upload ...
SFDC_Beginner's user avatar
1 vote
1 answer
963 views

File Upload Screen flow component is disabled on lightning page AKA - recordId is not passing to Screenflow

I build a screen flow to upload a file to an oppty, using the fileUpload component It works great when testing the flow itself, but when adding to a lighting page, the Upload file button is disabled ...
Saariko's user avatar
  • 5,581
1 vote
1 answer
444 views

Can't Convert to String some special Chars

I have a file to insert Accounts ,but some fields like account name have values with special characters like 'ñ' ,and Im having this error "BLOB is not a valid UTF-8 string" when I execute this query: ...
Dead_end_Developer's user avatar