|
@@ -1,7 +1,20 @@
|
|
|
-SET ":inner" = 'upload/Index.sql';
|
|
|
+SET ":tool" = 'upload';
|
|
|
+SET ":hash" = COALESCE($hash, '');
|
|
|
+SET ":hash" = sqlpage.url_encode(:hash);
|
|
|
+SET ":title" = 'Upload';
|
|
|
+SET ":color" = '#f59f00';
|
|
|
+SET ":tabler_color" = 'yellow';
|
|
|
+SET ":image" = '/static/upload/upload-favicon_square.svg';
|
|
|
+SET ":favicon" = :image;
|
|
|
+SET ":manifest" = '/static/upload/manifest.json';
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/theme.sql') AS properties;
|
|
|
+SET ":inner" = (CASE COALESCE(:inner, '')
|
|
|
+ WHEN 'sqlpage/Open.sql' THEN :inner
|
|
|
+ ELSE 'upload/Index.sql'
|
|
|
+END);
|
|
|
|
|
|
|
|
|
|
|
|
SET ":mime_type" = sqlpage.uploaded_file_mime_type('content');
|
|
|
SET ":content" = sqlpage.read_file_as_data_url(sqlpage.uploaded_file_path('content'));
|
|
|
-SELECT 'dynamic' AS component, sqlpage.run_sql('upload/entry.sql') AS properties;
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql(:inner) AS properties;
|