API results for “files”
WireUpload::setMaxFiles(int $maxFiles) class.method
Set the max allowed number of uploaded files
WireUpload::setMaxFileSize(int $bytes) class.method
Set the max allowed uploaded file size
WireUpload::setDestinationPath(string $destinationPath) class.method
Set the destination path for uploaded files
WireUpload::setExtractArchives(bool $extract = true) class.method
Set whether or not ZIP files may be extracted
WireUpload::getOverwrittenFiles() class.method
Get files that were overwritten (for overwrite mode only)
MarkupCache::removeAll() module.method
Clears all MarkupCache files
InputfieldFile::setMaxFilesize($filesize) module.method
Set the max file size in bytes or use string like "30m", "2g" "500k"
InputfieldFile::renderList($value) module.method
Render files list
InputfieldTinyMCE::mcePath(bool $getUrl = false) module.method
Return path or URL to TinyMCE files
FieldtypeFile::formatValue(Page $page, Field $field, Pagefiles $value) module.method
Perform output formatting on the value delivered to the API
FieldtypeFile::formatValueString(Page $page, Field $field, Pagefiles $value) module.method
Format value when output format is string
FieldtypeFile::getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query) module.method
Disable autojoin for files
FieldtypeFile::getFilesPath(Page $page, Field $field) module.method
Get path where files are (or would be) stored
FieldtypeFile::getPagefiles(Page $page, Field $field) module.method
Get Pagefiles
InputfieldRepeater::renderReady($parent = null, bool $renderValueMode = false) module.method
Called before render() or renderValue() method by InputfieldWrapper, before Inputfield-specific CSS/JS files added
ProcessPageEditLink::executeFiles() module.method
Return JSON containing files list for ajax use
ProcessPageEditLink::getFilesPage(Page $page, string $prefix = '') module.method
Get array of info about files attached to given Page, including any repeater items