This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class ConcreteFileHelper

Package: Helpers
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at helpers/concrete/file.php

Methods summary

public
# getSystemPath( $prefix, $filename, $createDirectories = false )

Given a file's prefix and its name, returns a path to the. Can optionally create the path if this is the first time doing this operation for this version.

public
# getThumbnailSystemPath( $prefix, $filename, $level, $createDirectories = false )
public
# getRelativePath( $prefix, $filename )
public
# getFileRelativePath( $prefix, $filename )
public
# getThumbnailRelativePath( $prefix, $filename, $level )
public
# mapSystemPath( $prefix, $filename, $createDirectories = false, $base = DIR_FILES_UPLOADED )
public
public string
# serializeUploadFileExtensions( array $types )

Serizlies an array of strings into format suitable for multi-uploader

public array
# unSerializeUploadFileExtensions( string $types )

UnSerizlies an array of strings from format suitable for multi-uploader

public
# getAllowedFileExtensions( )

Returns an array of all allowed file extensions within the system

Constants summary

string REGEX_INVALID_EXTENSION_CHARS
# '{[^a-z0-9]}i'