Fix of warnings in image manager class

This commit is contained in:
Jenkings
2024-01-12 07:31:35 +00:00
parent 246ae9bffc
commit ed8184a9c7

View File

@@ -22,11 +22,15 @@ class ImagesManager {
private $file_size; private $file_size;
public function __construct () { public function __construct () {
try{
$this->file_name = $_FILES['imageFile']['name']; $this->file_name = $_FILES['imageFile']['name'];
$this->file_type = $_FILES['imageFile']['type']; $this->file_type = $_FILES['imageFile']['type'];
$this->temp_name = $_FILES['imageFile']['tmp_name']; $this->temp_name = $_FILES['imageFile']['tmp_name'];
$this->file_error = $_FILES['imageFile']['error']; $this->file_error = $_FILES['imageFile']['error'];
$this->file_size = $_FILES['imageFile']['size']; $this->file_size = $_FILES['imageFile']['size'];
}catch(Exception $e){
//NOTHING
}
$this->is_validated = false; $this->is_validated = false;
$this->is_name_changed = false; $this->is_name_changed = false;
} }