Originally Posted by
gizmo_girl
I cannot locate this setting: admin configuration>maximum values> Allowed Filename Extensions for uploading
I found maximum file size in that area, but nothing about allowed filename extensions.
That's because that definition is no longer present in the database, as of zc157. The default allowable extensions are present in /includes/classes/upload.php:
Code:
// This is the old UPLOAD_FILENAME_EXTENSIONS which was in the database
if (!defined('UPLOAD_FILENAME_EXTENSIONS_LIST')) {
define('UPLOAD_FILENAME_EXTENSIONS_LIST', 'jpg,jpeg,gif,png,eps,cdr,ai,pdf,tif,tiff,bmp,zip');
}
If you want to change that list, you can create an override .php file (one for the admin and one for the storefront) in the /admin/includes/extra_datafiles and /includes/extra_datafiles sub-directories, respectively, that looks like
Code:
<?php
// -----
// Contains the file extensions that my site wants to allow for uploads.
//
define('UPLOAD_FILENAME_EXTENSIONS_LIST', 'jpg,jpeg,gif,bmp');
The file extensions are provided in a comma-separated list with no intervening spaces and no leading '.' before the file-extensions themselves.
Bookmarks