Bubble Basics

System is looking for solutions in Knowledgebase, Blogs, AI, and other places

File Selection – Single vs. Multiple Files

ntroduction

The plugin offers flexibility when selecting files by allowing you to choose either a single file or multiple files, based on the configuration of the allow_multiple_selection field.


Selecting a Single File

1. Configuration

  • Set Allow Multiple Selection:

    • Set allow_multiple_selection to false.

  • Define File Type:

    • Choose the desired file_type (e.g., images, documents) based on the file you wish to allow.

2. Workflow Usage

  • On File Selection:

    • When a file is selected, the onFilesSelected event will trigger.

  • Accessing File Details:

    • Use the exposed states (such as file_ids, file_urls, etc.) to access details like the file's ID and URL.

3. Example Workflow

  • Event: onFilesSelected

  • Action: Save the file_id in the database or display the image in a gallery.


Selecting Multiple Files

1. Configuration

  • Set Allow Multiple Selection:

    • Set allow_multiple_selection to true.

  • Define File Type and Limit:

    • Configure file_type and optionally set max_files to limit the number of selectable files.

2. Workflow Usage

  • On File Selection:

    • When multiple files are selected, the onFilesSelected event is triggered.

  • Accessing File Details:

    • Use the exposed states (e.g., file_ids, file_urls, etc.) to access the details of each selected file.

3. Example Workflow

  • Event: onFilesSelected

  • Action:

    • Save multiple file_ids in the database.

    • Generate links for bulk downloads or display a list of selected files on the user interface.


Was this page helpful?

Thank you for your feedback!

Comments (00)

Leave a comment

Sign in to post your comment or Sign Up if you don't have any account.

Ai Replying

We use cookies to enhance your experience on our website. By continuing to browse, you agree to our use of cookies. Learn more in our Privacy Policy

Accept All Reject All

Support, Knowledgebase, Live Chat, and CRM.

Get In Touch

Need More Help