@@ -1,3 +1,6 @@
SET inner = 'upload/Index.sql';
-
+-- although using a variable works, docs say to pass the function as first argument
+-- https://sql.ophir.dev/functions.sql?function=read_file_as_data_url#function
+SET data_uri = sqlpage.read_file_as_data_url(sqlpage.uploaded_file_path('content'));
+SET mime_type = sqlpage.uploaded_file_mime_type('content');
SELECT 'dynamic' AS component, sqlpage.run_sql('upload/entry.sql') AS properties;