function qqFileUploader::__construct in TinyBrowser 7
File
- tinybrowser/
fileuploader.php, line 105
Class
Code
function __construct(array $allowedExtensions = array(), $sizeLimit = 1048576) {
$allowedExtensions = array_map("strtolower", $allowedExtensions);
$this->allowedExtensions = $allowedExtensions;
$this->sizeLimit = $sizeLimit;
if (isset($_GET['qqfile'])) {
$this->file = new qqUploadedFileXhr();
}
elseif (isset($_FILES['qqfile'])) {
$this->file = new qqUploadedFileForm();
}
else {
$this->file = false;
}
}