• Documentation
  • Ask a Question
  • Zeroplat.io
  • Documentation
  • Ask a Question
  • Zeroplat.io
  • Introduction
    • Welcome to Zeroplat
    • Video Intro
  • Get Started
    • Requirements
    • Installation
  • Management
    • Resources
    • SaaS
      • Multi-tenancy
      • Editions
    • Permissions
    • Organization Units
    • Language
      • Languages
      • Language Texts
    • Roles
    • User
      • Users
      • Invite Users
    • Audit Logs
  • Visual Builder
    • Overview
    • Resources
      • Menu & Navigation
      • Pages
      • Dashboards
      • Components
      • Generate Pages from Datasource
    • Design
      • JS Query
      • Transformer
      • Variable
    • Event Designer
      • Tasks
        • Execute query
        • Start workflow
        • Show page
        • Close Page
        • Set variable
        • Show notification
        • Set components props
      • Switch
        • If
        • Confirm box
        • Confirm popover
    • Data
    • Preview & Publish
    • Components
      • Common Properties
        • Layout
        • Style
        • Actions
        • Validations
        • Tooltip
      • Inputs
        • Button
        • Input
        • InputNumeric
        • ComboBox
        • MulticolumnCombobox
        • Checkbox
        • CheckboxGroup
        • Switch
        • RadioGroup
        • ToggleButtonGroup
        • LocalizedInput
        • Slider
      • Business
        • OrganizationUnitBrowser
        • RoleBrowser
        • UserBrowser
      • Data display
        • DataGrid
      • Editors
        • QuillEditor
      • Feedback
        • Alert
        • Progress
      • File
        • Dropzone
        • FileButton
        • FileInput
      • Layout
        • SplitLayout
      • Navigation
        • TabBar
      • Pickers
        • DatePicker
        • DateTimePicker
        • DateRangePicker
        • DateCalendar
        • TimePicker
        • IconPicker
      • Surfaces
        • Card
      • Charts
        • AreaChart
  • Backend
    • Overview
  • Integrations
    • Overview
    • Environments
    • Database
      • MS SQL
      • SQL Lite
      • My SQL
      • PostgreSQL
    • API
      • Rest API
      • SMTP
      • Google Sheets
      • Twillio SMS
    • Javascript
      • Variable
      • Transformer
      • JS Query
    • Zeroplat Hosted
      • Zeroplat E-mail
  • Workflow (BPM)
    • Overview
    • Building and managing workflows
    • Inbox
    • Outbox
  • Marketplace
    • Overview
    • Management

FileButton

1 views 0

Written by Zeroplat
22 September 2025

The FileButton component allows users to upload files by clicking a button instead of using drag-and-drop. It supports validation (type, size), icons, styling, and tooltips for enhanced usability.

1. Basic Properties

  • Name: The unique identifier of the component (e.g., FileButton1).
  • Select button text: Label displayed on the button (e.g., Select File).
  • Accept: Restricts file types (e.g., image/*, .pdf).
  • Disabled: Makes the button inactive.
  • Hidden: Hides the component while keeping it in logic.
  • Multiple: Allows selection of multiple files.

2. Layout

Controls responsive grid placement and spacing.

📘 See Common Properties → Layout.

3. Events

  • onChange → Triggered when a file is selected.

4. Validations

Ensures selected files meet defined rules:

  • Max file size → Maximum allowed size.
  • Min file size → Minimum required size.
  • Invalid max file size message → Error shown when file is too large.
  • Invalid min file size message → Error shown when file is too small.

📘 See Common Properties → Validations.

5. Icons

  • Start icon → Icon shown at the beginning of the button.
  • End icon → Icon shown at the end of the button.

6. Appearance

  • Color → primary, secondary (theme colors).
  • Variant → Button style: contained, outlined, or text.
  • Size → small, medium, large.
  • Full width → Expands button to fill container.
  • Disable elevation → Removes button shadow.
  • Disable ripple → Removes ripple effect.
  • Disable focus ripple → Disables ripple effect on focus.
  • Loading → Shows loading state while processing.

7. Tooltip

Adds contextual help when hovering over the button.

  • Title → Tooltip text.
  • Placement → Tooltip position (top, bottom, left, right).

📘 See Common Properties → Tooltip.

8. Style

Custom styles can be applied for further UI adjustments.

📘 See Common Properties → Style.

✅ The FileButton component is best suited when a button-based upload fits better than drag-and-drop. It provides validation, theming, icons, and tooltips to create a user-friendly upload experience.

Was this helpful?

Yes  No
Related Articles
  • DateCalendar
  • Progress
  • TimePicker
  • IconPicker
  • DateTimePicker
  • DateRangePicker

Didn't find your answer? Contact Us

Previously
Dropzone
Up Next
FileInput
Copyright 2025 Zeroplat.io. All Rights Reserved