Skip to content

Component Setup

The component is configured per Lightning record page through Lightning App Builder. Each instance is independent — you can place several copies on the same page, each with different settings.

  1. Open the target record page (e.g., an Account record).
  2. Click the gear icon (Setup) → Edit Page.
  3. In the left component palette, find Tucario Smarter Files under Custom — Managed.
  4. Drag it onto the desired region of the page.
  5. Configure the properties in the right-hand panel.
  6. Save and Activate the page.
Lightning App Builder with Smarter Files component selected and the properties panel open

Source of truth: src/lwc/tucarioFilesWithDownloadAll/tucarioFilesWithDownloadAll.js-meta.xml.

The numbers in the first column match the red callouts on the screenshot above.

#PropertyTypeDefaultDescription
1Card Title (cardTitle)StringFilesHeader text shown in the component card. Useful when placing multiple instances on the same page.
2Storage Mode (storageMode)Picklist Standard, IsolatedStandardStandard links files via native ContentDocumentLink. Isolated links files only through the junction object — files are hidden from the standard Files related list and unlock visibility controls (categories, private flag).
3Excluded File Extensions (excludedFileExtensions)String(empty)Comma-separated denylist (e.g., exe,bat,scr). Listed extensions cannot be uploaded.
4Initial Files Displayed (initialFilesDisplayed)Integer5Number of files shown before the “Show All” button appears. 0 or empty means show all.
5Allowed File Extensions (allowedFileExtensions)String(empty)Comma-separated allowlist (e.g., pdf,docx,png). When set, only these extensions can be uploaded. Empty means no allowlist filter.
6Max File Size (MB) (maxFileSize)Integer0Per-file upload size cap in megabytes. 0 means no limit.
7Display Mode (displayMode)Picklist List, TilesListList shows vertical rows with name/size/date. Tiles shows a responsive grid of cards with file-type icons.
8Default Sort Order (defaultSortOrder)Picklistdate-newestInitial sort applied when the page loads. Users can change it at runtime via the sort combobox above the file list. Allowed values: date-newest, date-oldest, size-largest, size-smallest, name-az, name-za.
Editing the Card Title property in App Builder to override the component header Initial Files Displayed property highlighted in App Builder properties panel

The parser is forgiving — leading dots are stripped, whitespace is trimmed, matching is case-insensitive. All of the following are equivalent inputs:

docx,exe,pdf
.docx, .exe, .pdf
DOCX , EXE , PDF
.DOCX, exe , .Pdf

How the Allowed (5) and Excluded (3) lists interact

Section titled “How the Allowed (5) and Excluded (3) lists interact”

The validation runs client-side in tucarioFilesWithDownloadAll.js (validateUploadedFiles, lines 596–610) in two sequential checks. A file is uploaded only if it passes both:

  1. Allowed check — if Allowed File Extensions is set, the file’s extension must be on that list. Files with no extension are blocked when an Allowed list is configured (no match is possible).
  2. Excluded check — if Excluded File Extensions is set, the file’s extension must not be on that list.

This produces the following behaviour:

Allowed (5)Excluded (3)File extensionResult
emptyemptyanyAllowed
pdf,docxemptypdfAllowed
pdf,docxemptyexeBlocked (not in Allowed)
emptyexe,batexeBlocked (in Excluded)
emptyexe,batpdfAllowed
pdf,exeexe,batexeBlocked — Excluded wins when an extension appears on both lists
pdf,docxexe,bat(no extension)Blocked (Allowed list configured, no match possible)

Practical takeaway: when you only need to block a few risky types, use Excluded File Extensions alone. When you need to enforce a strict whitelist, use Allowed File Extensions alone — adding an Excluded list on top is only useful if a subset of allowed extensions should still be denied (in which case Excluded takes precedence).

Card Title: Documents
Storage Mode: Standard
Allowed File Extensions: pdf,docx,doc,xlsx,xls,pptx,ppt
Max File Size (MB): 25
Display Mode: List
Default Sort Order: date-newest
Card Title: Confidential Documents
Storage Mode: Isolated
Excluded File Extensions: exe,bat,scr,com
Initial Files Displayed: 10
Display Mode: List
Default Sort Order: date-newest
Card Title: Images
Storage Mode: Standard
Allowed File Extensions: png,jpg,jpeg,gif,webp
Display Mode: Tiles
Initial Files Displayed: 12

Every user-facing string is a Salesforce Custom Label. To customize any text:

  1. Setup → Custom Labels.
  2. Filter by Tucario to find all relevant labels (Tucario_Files_*, Tucario_Common_*, Tucario_Visibility_*, Tucario_Wizard_*).
  3. Edit the label value, save, and refresh the page.
Custom Labels filtered by Tucario in Salesforce Setup

See Custom Labels for translation tips.

  • Works in the main content area, sidebar, or full-width regions of the record page.
  • Can be placed on any standard or custom object record page.
  • Multiple instances on the same page are supported — useful for splitting a record into different file spaces (e.g., one Standard-mode instance for general files and one Isolated-mode instance for confidential documents). Set distinct Card Titles to tell them apart.
  • The component is record-page only. The Configuration Wizard ships as a separate app page accessible from the Smarter Files by Tucario app launcher entry.