Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (37 sloc) 780 Bytes
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\web\twig\variables;
use craft\helpers\Assets;
/**
* Io variable.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 3.0
*/
class Io
{
// Public Methods
// =========================================================================
/**
* Return max upload size in bytes.
*
* @return int|float
*/
public function getMaxUploadSize()
{
return Assets::getMaxUploadSize();
}
/**
* Returns a list of file kinds.
*
* @return array
*/
public function getFileKinds(): array
{
return Assets::getFileKinds();
}
}
You can’t perform that action at this time.