Skip to content

chungchunwang/Budibase-File-Repeater

Repository files navigation

Budibase File Repeater Tool

About

This is a companion to the Budibase File Upload Plugin, and is used for displaying the file data stored by the File Upload Plugin on non-form pages. Just pass in the string generated by the File Upload Plugin and it will act as a repeater, repeating child components for every file and providing a URL link to the file through context. Note that the URL lengths can be very long as they carry the file information itself. Please report any issues or feature requests (or perhaps star!).

This is a plugin for the low-code platform Budibase. Find out more about Budibase here.

How to use:

  1. Add a new Budibase File Repeater into the app. image
  2. In the data field, input the string data in which your file is stored. image
  3. Now, any child elements to the repeater will be repeated for every file stored in the field, and child elements will have access to the data URL, blob URL, name, size, and type properties of the file. image

Settings

Data: The string data to be parsed.

Context Returned

Data URL: The data url of a file. Data URLs contain the all of the file's binary data within its URI, so they can be quite long. However, they will work just like normal links and can function in image and links!

Blob URL: The blob url of a file. Blob URLs store the data inside of the browser, so they have shorter links.. However the links will not work if directly copied to another browser. It is recommended that you use this option.

Name: The name of the file.

Size: The size of the file.

Type: The type of the file.

Other Tools

Check out the main Budibase File Upload Plugin!

Instructions

To build your new plugin run the following in your Budibase CLI:

budi plugins --build

You can also re-build everytime you make a change to your plugin with the command:

budi plugins --watch

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published