faq:uploadcontentcheck
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
faq:uploadcontentcheck [2011-10-22 03:30] – 99.66.112.234 | faq:uploadcontentcheck [2011-10-22 06:20] (current) – old revision restored 24.18.132.182 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | bitch | + | ====== Uploaded Content Mismatch ====== |
+ | |||
+ | :?: When I try to upload an image, I get a "The uploaded content did not match the file extension" | ||
+ | |||
+ | :!: 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: | ||
+ | |||
+ | <code php> | ||
+ | upload_tmp_dir = / | ||
+ | </ | ||
+ | |||
+ | Or in your .htaccess file: | ||
+ | |||
+ | <code apache> | ||
+ | php_value upload_tmp_dir / | ||
+ | </ | ||
faq/uploadcontentcheck.txt · Last modified: 2011-10-22 06:20 by 24.18.132.182