From da576baab92535c612899a22e530ad494088cad0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 10 Jul 2019 18:25:54 +0200 Subject: [PATCH 1/2] Allow to upload bigger files Signed-off-by: Andreas Schneider --- .htaccess.disabled | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.htaccess.disabled b/.htaccess.disabled index e2c8374..5a3abe4 100644 --- a/.htaccess.disabled +++ b/.htaccess.disabled @@ -2,3 +2,11 @@ RewriteEngine on RewriteCond !%{HTTP_USER_AGENT} "Let's Encrypt validation server" [NC] RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC] RewriteRule .* - [R=403,L] + + +php_value max_execution_time 30 +php_value post_max_size 10M +php_value upload_max_size 10M +php_value upload_max_filesize 10M +php_value max_file_uploads 100 + From 5c5de860e23f85425cf5dd1e3831f580c39f5d15 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 12 Jul 2019 10:03:59 +0200 Subject: [PATCH 2/2] INSTALL: Creata a mediumblob for data in a paste This allows to upload bigger pastes and pastes with attachments in the v2 paste format. Fixes #456 --- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 4ce24d4..81f8903 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -139,7 +139,7 @@ For reference or if you want to create the table schema for yourself to avoid ha ```sql CREATE TABLE prefix_paste ( dataid CHAR(16) NOT NULL, - data BLOB, + data MEDIUMBLOB, postdate INT, expiredate INT, opendiscussion INT,