Added documentation for upload.cgi
This commit is contained in:
parent
f154c62f70
commit
b3c06dd76a
1 changed files with 15 additions and 0 deletions
15
doc/index.md
15
doc/index.md
|
@ -115,3 +115,18 @@ lainsafecli sicp.pdf
|
||||||
|
|
||||||
https://lainsafe.delegao.moe/files/nzOhDKtB.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.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue