This is an old revision of the document!


  • Change the upload file size:
  • /etc/php.ini:
post_max_size
upload_max_filesize

and for nginx

  • /etc/nginx/nginx.conf:
client_max_body_size 250M;

log 210604: uncomment several types

# 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