You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,17 @@ insert into files (content) values (sqlpage.read_file_as_data_url(sqlpage.upload
30
30
returning 'text'as component, 'Uploaded new file with id: '|| id as contents;
31
31
```
32
32
33
+
The maximum size of uploaded files is configurable with the [`max_uploaded_file_size`](./configuration.md) configuration parameter. By default, it is set to 5 MiB.
34
+
33
35
#### Parsing CSV files
34
36
35
37
SQLPage can also parse uploaded CSV files and insert them directly into a database table.
36
-
SQLPage re-uses PostgreSQL's `COPY` statement to import the CSV file into the database, but makes it work with any database, by emulating the same behavior with simple `INSERT` statements.
Copy file name to clipboardExpand all lines: configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ on a [JSON](https://en.wikipedia.org/wiki/JSON) file placed in `sqlpage/sqlpage.
16
16
|`sqlite_extensions`|| An array of SQLite extensions to load, such as `mod_spatialite`|
17
17
|`web_root`|`.`| The root directory of the web server, where the `index.sql` file is located. |
18
18
|`allow_exec`| false | Allow usage of the `sqlpage.exec` function. Do this only if all users with write access to sqlpage query files and to the optional `sqlpage_files` table on the database are trusted. |
19
-
|`max_uploaded_file_size`|10485760| Maximum size of uploaded files in bytes. Defaults to 10 MiB. |
19
+
|`max_uploaded_file_size`|5242880| Maximum size of uploaded files in bytes. Defaults to 5 MiB. |
20
20
|`https_domain`|| Domain name to request a certificate for. Setting this parameter will automatically make SQLPage listen on port 443 and request an SSL certificate. The server will take a little bit longer to start the first time it has to request a certificate. |
21
21
|`https_certificate_email`| contact@<https_domain> | The email address to use when requesting a certificate. |
22
22
|`https_certificate_cache_dir`| ./sqlpage/https | A writeable directory where to cache the certificates, so that SQLPage can serve https traffic immediately when it restarts. |
0 commit comments