Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
soft:dokuwiki_memo [2020/07/23 12:11] – created Ce Zhangsoft:dokuwiki_memo [2021/07/29 05:07] (current) Ce Zhang
Line 1: Line 1:
-  * add the upload file type: conf/mime.conf+  * add the upload file type: /home/html/dokuwiki/conf/mime.conf
     * https://www.dokuwiki.org/mime     * https://www.dokuwiki.org/mime
 +
 +  * Change the upload file size:
 +  * /etc/php.ini:
 +<code>
 +post_max_size
 +upload_max_filesize
 +</code>
 +and for nginx
 +  * /etc/nginx/nginx.conf:
 +<code>
 +client_max_body_size 250M;
 +</code>
 +
 +
 +log 210604: uncomment several types;
 +
 +vi /home/html/dokuwiki/conf/mime.conf
 +<code>
 +# You should enable HTML and Text uploads only for restricted Wikis.
 +# Spammers are known to upload spam pages through unprotected Wikis.
 +# Note: Enabling HTML opens Cross Site Scripting vulnerabilities
 +#       through JavaScript. Only enable this with trusted users. You
 +#       need to disable the iexssprotect option additionally to
 +#       adding the mime type here
 +html    text/html
 +htm     text/html
 +txt     text/plain
 +conf    text/plain
 +xml     text/xml
 +csv     text/csv
 +
 +</code>