• 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

FileInput

1 views 0

Written by Zeroplat
22 September 2025

The FileInput component provides a traditional input field for selecting and managing files. Unlike FileButton and Dropzone, this component integrates the file selector directly into the form field, with support for validation, clear/download buttons, and layout customization.

1. Basic Properties

  • Name: The unique identifier of the component (e.g., FileInput1).
  • Label: The text displayed above the input (e.g., File input).
  • Edit select button: Customize the label of the select button.
  • Accept: Restrict file types (e.g., image/*, .pdf).
  • Placeholder: A hint message displayed when no file is selected.

States

  • Disabled: Prevents file selection.
  • Hidden: Hides the input while keeping it in logic.
  • Multiple: Allows selecting multiple files.

2. Layout

Defines responsiveness and spacing of the component.

📘 See Common Properties → Layout.

3. Events

  • onChange → Triggered when a file is selected, changed, or removed.

4. Validations

Ensures uploaded files meet specific requirements:

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

📘 See Common Properties → Validations.

5. Buttons

  • Show clear button → Adds a button to remove the selected file(s).
    • Clear button text → Customize label (default: Clear).
  • Show download button → Adds a button to download the selected file.
    • Download button text → Customize label (default: Download).
  • Select button location → Choose position of the select button (start or end).

6. Style

Custom styles can be applied for further UI adjustments.

📘 See Common Properties → Style.

✅ The FileInput component is ideal when you want a form-style file selector with built-in clear/download options, making it more flexible for managing uploaded files compared to FileButton or Dropzone.

Was this helpful?

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

Didn't find your answer? Contact Us

Previously
FileButton
Up Next
Layout
Copyright 2025 Zeroplat.io. All Rights Reserved