In this post we are going to learn about how to Display an Upload Icon on the lightning component if a object record has files or any kind of attachment..

A file uploader for uploading and attaching files to records

Usage Considerations

lightning:fileUpload doesn't support uploading multiple files at once on Android devices.

This component is not supported in Lightning Out or standalone apps, and displays as a disabled input. Additionally, if the Don't allow HTML uploads as attachments or document records security setting is enabled for your organization, the file uploader can't be used to upload files with the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm, .shtml, .acgi, .svg. For more information, see Upload and Share Files in Salesforce Help. To Know more about lightning:fileUpload click here

➡ Get Source Code Live Demo Link Click Here