Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

upload.ini [image_ClassSettings]

The settings of [image_ClassSettings] in upload.ini: FileAttribute, NameAttribute, NamePattern

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/upload/image_ClassSettings.md

On this page

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=image

The class attribute identifier which will get the name,
the name is calculated using NamePattern
NameAttribute=name

A 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.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/upload.ini.append.php for one siteaccess,
  • extension/<extension>/settings/upload.ini.append.php in an extension (read when the extension is active).

FileAttribute

Default: image.

<?php /* #?ini charset="utf-8"?
# settings/override/upload.ini.append.php
[image_ClassSettings]
FileAttribute=image
*/ ?>

NameAttribute

Default: name.

<?php /* #?ini charset="utf-8"?
# settings/override/upload.ini.append.php
[image_ClassSettings]
NameAttribute=name
*/ ?>

NamePattern

Default: <original_filename_base>.

<?php /* #?ini charset="utf-8"?
# settings/override/upload.ini.append.php
[image_ClassSettings]
NamePattern=<original_filename_base>
*/ ?>

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x