header banner -- www.w3web.net

How to Upload Custom Files (.jpg', '.jpeg','.pdf') Using "lightning:fileUpload" Element in Lightning Component

In this post we are going to learn about how to upload custom files (.jpg', '.jpeg','.pdf') in Salesforce lightning component.

A lightning:fileUpload component provides an easy and integrated way for users to upload multiple files. The file uploader includes drag-and-drop functionality and filtering by file types.

This component inherits styling from file selector in the Lightning Design System.

To associate an uploaded file to a record, specify the recordId attribute. Uploaded files are available in Files Home under the Owned by Me filter and on the record's Attachments related list on the record detail page. If you don't specify the recordId attribute, the file is private to the uploading user. To know more about File Upload in Aura Component.

➡ Get Source Code Live Demo Link Click Here

Post a Comment

0 Comments