Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
717 views

File Content is missing while uploading as multipart/form-data using FETCH API

I am trying to upload file to contentversion object using javascript with the help of FETCH API. I'm able to upload the file successfully but the content is not displaying. Please find the form ...
Raja Sabarish's user avatar
0 votes
1 answer
720 views

Upload file in child and submit in Parent

I have lightning-input tag with type as file in Child component, and I am making use of this child component in Parent component which contains Submit button. So when the user clicks on submit , file ...
Venkat's user avatar
  • 11
0 votes
1 answer
2k views

how to disable Lightning button after file upload in LWC

I have a lwc page where users can upload files in an object. I have a requirement the import button need to be enabled only if the file is not uploaded yet , but if it is uploaded succesfully i should ...
mary snh's user avatar
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
Bahman.A's user avatar
  • 928
0 votes
1 answer
2k views

LWC Upload File/Files to Multiple Contacts

I have a data table of Contacts on an Account Record Page and I am trying to use the modal component as a file uploader. Basically, you would select a contact or contacts, click the modal button, and ...
Diego Delgado's user avatar
4 votes
1 answer
5k 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
0 votes
1 answer
1k views

How to attach contentversion to record in Javascript

I am working on a solution to avoid to surpass the viewstate limit when uploading a file. Currently with javascript I create a record and create a contentversion but the contentversion is not attached ...
Thomas's user avatar
  • 2,320
0 votes
0 answers
19 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
MnZ's user avatar
  • 3,256
0 votes
2 answers
3k views

How to parse CSV file in lightning Javascript

Currently I had built a file upload functionality in Lightning component which accepts the CSV file, read it as text(Each row in CSV is split using \n and each column in the row is split using ,). ...
Sindhuja's user avatar
  • 155