SQLPage Image Upload Demo

About

This is a demo of the SQLPage file upload feature. A file upload form is created using the form component:

select 'form' as component;
select 'my_file' as name, 'file' as type, 'Picture' as label;

When a file is uploaded, it is displayed in a card component using the sqlpage.read_file_as_data_url function:

select 'card' as component, 1 as columns;
select 'Your picture' as title, sqlpage.read_file_as_data_url(sqlpage.uploaded_file_path('my_file')) as top_image;

See the source code of this page.