Skip to main content
Version: Fegg 5.x (next)

Upload::getFileType

Get the allowed file types (extensions)

Description​

public array Upload::getFileType()

Example​

Controller
use Fegg\Tool\Upload;

$upload = new Upload();
var_dump($upload->getFileType()); // -> array('jpg', 'jpeg', 'png', 'gif')