From b3c06dd76a00a234b951da41f32e8464ef336763 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Fri, 1 May 2020 15:28:09 +0200 Subject: [PATCH] Added documentation for upload.cgi --- doc/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/index.md b/doc/index.md index 9e2d533..2338e3e 100644 --- a/doc/index.md +++ b/doc/index.md @@ -115,3 +115,18 @@ lainsafecli sicp.pdf https://lainsafe.delegao.moe/files/nzOhDKtB.pdf ~~~ + +# upload.cgi + +``upload.cgi``` is the perl script that do all the works. You could +delete index.cgi from your sever and just upload.cgi. You'd upload +files through ```lainsafecli```. + +## Configuration + +Only one parameter: ```$MAX_SIZE``` specify, in megabytes, the max size of files allowed. So for example. If you want to set 100MBs as max size . ```$MAX_SIZE``` would be like this: ```$MAX_SIZE = 1024*1024*100``` + +If someone tries to upload a file bigger than 100MBs. It will return +Max size for a file is 100 MBs, then, uploda.cgi will die. + +