Function validate_fileExtension
Validation of image file upload for allowed file extensions
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/validation_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/validation_helper.php
array |
$value |
The $_FILES array |
array |
$extensions = array('jpg', 'jpeg', 'png', 'gif') |
The Array of file extensions such as <code>array('jpg', 'jpeg', 'png', 'gif')</code> |
boolean
|
TRUE if the uploaded file extension is allowed according to the given extensions, FALSE otherwise |