S3 clouds uploader

Demo to preview the settings


This plugin allows uploading files from your Bubble app to any cloud whose API is compatible with AWS S3 SDK (Oracle Cloud, AWS S3, Zenko Cloudserver, Scality S3, STORIJ cloud, Wasabi, Yandex s3 bucket, ect…). Add an awesome file/image uploader to your app!! Supports live preview, image/file size limits, file type, and much more! Since the plugin is designed to be compatible with a large number of cloud storages, an example of Wasabi setup will be presented here (all these platforms are similar in settings).

How to setup

  • Create an account on the desired Cloud storage which is compatible with the AWS SDK.
  • Go to the Access Keys and create a new access key.
Image without caption
example: Created key in Wasabi
Image without caption
  • Insert the access key/secret from the plugins tab Access key ID and Secret Access Key.
Image without caption
Endpoint - is one end of a communication channel. When an API interacts with another system, the touchpoints of this communication are considered endpoints. For APIs, an endpoint can include a URL of a server or service. To connect to a cloud service, which is compatible with AWS SDK, use an endpoint. An endpoint can be found in the cloud dashboard or it can be found in the documentation after the keyword "s3 endpoints ${name cloud storage}”. Ex: Wasabi: s3.${Region}.wasabisys.com , Amazon: s3.${Region}.amazonaws.com
  • Insert the endpoint in the plugin field
Image without caption
  • Please set the CORS policy in the cloud dashboard on your own.

Plugin Element Proprieties

Image without caption
The plugin contains the Uploader visual element which should be used on a page.
  • Bucket - A bucket is a container for objects stored in S3 clouds.
  • Bucket region - cloud creates buckets in a Region specified by you. To optimize latency, minimize costs, or address regulatory requirements, choose any Region that is geographically close to you. For example, if you reside in Europe, you might find it advantageous to create buckets in the Europe (Ireland) or Europe (Frankfurt) Regions.
  • Image quality- the quality of the output image is supplied as a value between 0 and 100.
  • Max Files: Maximum number of files.
  • Accepted File Types: File extensions - Enter extensions for validation.
  • Allow File Size Validation- enables or disables file type validation.
  • File Size (KB/MB)- The maximum size of a file for example 100MB or 100KB.
  • Total File Size (KB/MB)- Maximum size of all files in the list, same format as File Size
  • Allow Image Preview- enable or disable preview mode.
  • Allow Image Resize- enable or disable image resizing. If disabled the proprieties for resizing will not work.
  • Allow Image Crop- enable or disable image cropping. If disabled other proprieties related to cropping will not work.
  • Image Crop Aspect Ratio: The aspect ratio of the crop in human-readable format, for example:'1:1' or '16:10'
  • Image Resize Upscale: Set to false to prevent upscaling of images smaller than the target size
  • Image Resize Target Width- the output width in pixels.
  • Image Resize Target Height- the output height in pixels.
  • Image Resize Mode- the method by which the images are resized. Choose between 'force', 'cover', or 'contain'. force will ignore the image aspect ratio. cover will respect the aspect ratio and will scale to fill the target dimensions. contain also respects the aspect ratio and will fit the image inside the set dimensions. All three settings will upscale images when there are smaller than the given target dimensions.
  • Instant Upload - Immediately upload new files to the server.
  • Uploader text: Example: "Drag & Drop your files or Browse".
  • Label File Type Not Allowed: A Message is shown when an invalid file is added.
  • Label File Size Exceeded: Status message shown when a large file is dropped.
  • Label Max File Size: A detail message is shown when the max file size was exceeded.
  • Label Total File Size Exceeded: Status message shown when the total file size exceeds the maximum.
  • Label Total File Size: The detail message shows the total file size exceeds the maximum.
  • Font color - set the color of the text for the uploader.
  • Font color hover - set the text color of hover for the uploader.
  • Background color - set the background color for the uploader.
  • Background Color hover - set the background color of the hover for the uploader.

Element Actions

  • Delete Files - Delete files from your cloud.
Image without caption
  • Reset input - Cleans the input of all files.
Image without caption

Element Events

  • Deleted with success - This event will let you know that the file has been deleted.
  • Loaded successfully - This event indicates that all pending or uploaded files have been uploaded.

Exposed States

The plugin returns the following states:
  • Files Name - The list of the names of the uploaded files.
  • File -returns the URL of the file.
  • Error - returns an error.
  • Max Files - Returns yes/no value when max files are in the element.
  • Files Size - List of uploaded file sizes.
  • Files URLs - List of uploaded files’ URLs.


Update 21.04.24 - Version 1.14.0

  • File size base changed to 1024 and allow image transform checkbox added