Convert URLs to Files

Demo to preview the plugin:

Introduction

Add this Zeroqode plugin to your Bubble app to convert URLs into usable files and enable file uploads to your database. It also allows users to see a download prompt for the files.

Prerequisites

To use the Convert URLs to Files Plugin for Bubble by Zeroqode, ensure the following:
  • You must have an active Bubble account.
Image without caption

How to setup

Step 1: Install the Plugin
Step 2: Setup the Plugin Element

Plugin Element Properties

URL to File

Image without caption
Fields:
Title
Description
Type
The element action to get the file is now available.

Element Actions

  1. Create File From URL - Create File From URL
Image without caption
Title
Description
Type
File URL:
URL
Text
File Name:
File Name
Text
Checking the Show Download Prompt will bypass the attach to method and simply render the file and promt the user to download it. Leaving it unchecked and providing something such as user/ current user will attach the item to them and output the files new url as a state, also the base64 of the file, the base64 url & the MIME type eg. image/png. Catch the uploaded files url using the successful upload event.
Show Download Prompt?
Show Download Prompt?
Checkbox (yes/no)
Attach To Type:
App Type
App Type (optional)
Attach To:
Thing
Item reperesenting Attach To Type: (optional)
Enable CORS
Enable CORS for downloading files from different domains. It is enabling ‘Access-Control-Allow-Origin’
Checkbox (yes/no)

Exposed states

Title
Description
Type
Output Base64 URL
Output Base64 URL
Text
Output Base64
Output Base64
Text
File Type
File Type
Text
Uploaded File’s URL
Upload’s URL
File

Element Events

Title
Description
Successful Upload
Successful Upload
Unsuccessful Upload
Unsuccessful Upload
Image without caption

Changelogs