mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
Update 20240810115846_image_upload_function.sql.sql
This commit is contained in:
@@ -8,7 +8,7 @@ DECLARE
|
|||||||
_website_id UUID := (_headers ->> 'x-website-id')::UUID;
|
_website_id UUID := (_headers ->> 'x-website-id')::UUID;
|
||||||
_mimetype TEXT := _headers ->> 'x-mimetype';
|
_mimetype TEXT := _headers ->> 'x-mimetype';
|
||||||
_original_filename TEXT := _headers ->> 'x-original-filename';
|
_original_filename TEXT := _headers ->> 'x-original-filename';
|
||||||
_allowed_mimetypes TEXT[] := ARRAY['image/png', 'image/svg+xml', 'image/jpeg', 'image/webp'];
|
_allowed_mimetypes TEXT[] := ARRAY['image/png', 'image/jpeg', 'image/webp'];
|
||||||
_max_file_size INT := 5 * 1024 * 1024;
|
_max_file_size INT := 5 * 1024 * 1024;
|
||||||
BEGIN
|
BEGIN
|
||||||
IF OCTET_LENGTH($1) = 0 THEN
|
IF OCTET_LENGTH($1) = 0 THEN
|
||||||
|
|||||||
Reference in New Issue
Block a user