added file uploads
This commit is contained in:
@@ -35,6 +35,7 @@ class FileController extends mfBaseController {
|
||||
}
|
||||
|
||||
if(preg_match('/\.([^.]+)/',$filename,$m)) {
|
||||
if (!isset($ext)) $ext = '';
|
||||
$ext .= $m[1];
|
||||
} else {
|
||||
throw new Exception("File not found", 4042);
|
||||
|
||||
Reference in New Issue
Block a user