upload.ini [image_ClassSettings]
The block [image_ClassSettings] of settings/upload.ini, with 3 setting(s).
Consists of the class identifier name with _ClassSettings appended
This example is the for 'image' identifier.
[image_ClassSettings]The class attribute identifier which will get the file data
FileAttribute=imageThe class attribute identifier which will get the name,
the name is calculated using NamePattern
NameAttribute=nameA pattern that defines the name of the object, it is
contains text and tags enclosed in < and >.
Available tags are:
- original_filename: The filename of the uploaded file like it was on the locale machine
- original_filename_base: Like original_filename but has just the base of the name (i.e no suffix)
- original_filename_suffix: Like original_filename but has just suffix
- mime_type: The detected MIME-Type of the file
NamePattern=<original_filename_base>
Never edit settings/upload.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/upload.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/upload.ini.append.phpfor one siteaccess,extension/<extension>/settings/upload.ini.append.phpin an extension (read when the extension is active).
FileAttribute
Default: image.
# settings/override/upload.ini.append.php
[image_ClassSettings]
FileAttribute=image
*/ ?>NameAttribute
Default: name.
# settings/override/upload.ini.append.php
[image_ClassSettings]
NameAttribute=name
*/ ?>NamePattern
Default: <original_filename_base>.
# settings/override/upload.ini.append.php
[image_ClassSettings]
NamePattern=<original_filename_base>
*/ ?>Related
Generated by ./console exp:help:examples from settings/upload.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.