Prestashop image upload errors

Bugfix:

https://github.com/PrestaShop/PrestaShop/issues/13262

edit / change /img/.htaccess to:

<IfModule mod_php5.c>
	php_flag engine off
</IfModule>

# Apache 2.2
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    <Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|wepb|ico)$">
        Allow from all
    </Files>
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
	Require all granted
	# Deny everything NOT one of the following.
	<FilesMatch ^((?!\.(webp|jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico)).)*$>
	       Require all denied
	</FilesMatch>
</IfModule>
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

Warning about pirated (nulled) software

Warning about pirated (nulled) software, templates and pluginsDo not use so called nulled...

PhpSwitcher - PHP 5.6 | 7.0 | 7.1 | 7.2 | 7.3

If you want to change a PHP version, you will find the PHPswitcher in your Control Panel...