New: Media in data tables | Anvil
阿新 • • 發佈:2018-12-29
« Anvil Blog
column in your table:
method. See the reference documentation for more details.
Store files in Data Tables. Why not?
We’re used to storing text and numbers in databases, so why not binary media? Whether it’s images, PDF files or whole spreadsheets, now you can store your files directly in Anvil Data Tables like any other data type.
Just create a Media
Create rows in your table by uploading files:
And view or download the media objects directly from the database:
A Media object from a table row behaves just like any other Media object in Anvil - you can assign it to the source
property of an Image
component, get its URL, or even get its contents as a binary string with the get_bytes()