contentBodyId: The ContentBody Id in the format 05TXXXXXXXXXXXX. documentId: The ContentDocument Id in the format 069XXXXXXXXXXXX. contentVersionId: The ContentVersion Id in the format 068XXXXXXXXXXXX. You can use in the event handler to access a list of uploaded files with the following attributes: The file upload starts immediately after the files are selected and the uploadfinished event is fired at the end. There is no fileadded event fired with lightning-file-upload, nor the standard input change event. This event is fired after clicking the “Done” button in the “Upload Files” modal. Fired when the upload is finished to return a list of the uploaded files. ▹ uploadfinished - The only event used with lightning-file-upload. There is no max-files attribute to manually specify how many files can be uploaded.ĭisabled, label, and title attributes Understand the custom events (it’s just the one) The maximum limit is 25, but a case needs to be raised with Salesforce to request this limit. To select multiple files, hold down the CTRL or SHIFT key while selecting.īy default, you can upload up to 10 files simultaneously unless your Salesforce admin has changed that limit. ▹ multiple- Specifies that the user is allowed to select more than one file. ▹ disabled- Specifies whether this component should be displayed in a disabled state. The button label is “Upload Files” by default and cannot be changed. The label attribute does not affect the button label. The information is shown as a tooltip text when the mouse moves over the element. ▹ label- The descriptive text label above the Upload Files button. ▹ class- Used to add a custom class to the outer element of the component. ▹ name- Specifies the name of the input element. svg if Don’t allow HTML uploads as attachments or document records is enabled under File Upload and Download Security. The file uploader cannot be used to upload files with the following file extensions. ▹ accept- Comma-separated list of file extensions that can be uploaded in the format, such as. If the record-id is not specified, the file will be private to the uploading user. The record-id attribute is used to create a ContentDocumentLink to link the newly created ContentDocument to the record. ▹ record-id - The id of the record that the uploaded file should be associated with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |