WireUpload::setValidExtensions()

Set allowed file extensions

Usage

$wireUpload->setValidExtensions(array $extensions);

Arguments

NameType(s)Description
$extensionsarray

Array of file extensions (strings), not including periods

Return value

$this

Object instance it was called from (method supports fluent interface).


WireUpload methods and properties

API reference based on ProcessWire core version 3.0.252