Added documentation for upload.cgi

This commit is contained in:
qorg11 2020-05-01 15:28:09 +02:00
parent f154c62f70
commit b3c06dd76a
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 15 additions and 0 deletions

View File

@ -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.