DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

faq:uploadcontentcheck

Uploaded Content Mismatch

:?: When I try to upload an image, I get a “The uploaded content did not match the file extension” error. How to fix this.

:!: DokuWiki checks if uploaded files contain malicious content. To do this it needs access to uploaded file in the temporary upload directory. If your server uses PHP's open_basedir setting, you need to make sure your temporary upload directory is inside this basedir.

You can set the option to your DokuWiki temp dir. Either in your php.ini:

upload_tmp_dir = /path/to/dokuwiki/data/tmp

Or in your .htaccess file:

php_value upload_tmp_dir /path/to/dokuwiki/data/tmp
faq/uploadcontentcheck.txt · Last modified: 2011-10-22 06:20 by 24.18.132.182