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

package.ini [UploadSettings]

The settings of [UploadSettings] in package.ini: MaxArchiveSize, MaxUnpackedSize, MaxEntries, AllowedSuffixes

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/package/UploadSettings.md

On this page

package.ini [UploadSettings]

The block [UploadSettings] of settings/package.ini, with 4 setting(s).

The limits of a package archive uploaded on package/upload, the setup wizard or ezpm import
(eZPackageUploadInspector). An archive is also refused, whatever these say, when an entry points outside the
package ("..", an absolute path), is a link or a device, or its package.xml is not a well formed definition.
Guide: doc/eng-us/guides/packages.md

Never edit settings/package.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/package.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/package.ini.append.php for one siteaccess,
  • extension/<extension>/settings/package.ini.append.php in an extension (read when the extension is active).

MaxArchiveSize

The largest archive accepted, in bytes (256 MiB). PHP's upload_max_filesize and post_max_size apply first.

Default: 268435456.

<?php /* #?ini charset="utf-8"?
# settings/override/package.ini.append.php
[UploadSettings]
MaxArchiveSize=268435456
*/ ?>

MaxUnpackedSize

The most its entries may unpack to, in bytes (2 GiB)

Default: 2147483648.

<?php /* #?ini charset="utf-8"?
# settings/override/package.ini.append.php
[UploadSettings]
MaxUnpackedSize=2147483648
*/ ?>

MaxEntries

The most entries (files and directories) an archive may have

Default: 50000.

<?php /* #?ini charset="utf-8"?
# settings/override/package.ini.append.php
[UploadSettings]
MaxEntries=50000
*/ ?>

AllowedSuffixes

The endings an uploaded file's name may have

Default: a list of 3: ezpkg, tar.gz, tgz.

<?php /* #?ini charset="utf-8"?
# settings/override/package.ini.append.php
[UploadSettings]
# an empty "AllowedSuffixes[]" first replaces the shipped list; without it the items are added
AllowedSuffixes[]
AllowedSuffixes[]=ezpkg
AllowedSuffixes[]=tar.gz
AllowedSuffixes[]=tgz
*/ ?>

Generated by ./console exp:help:examples from settings/package.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