public function __construct($url) { parent::__construct($url); if (!empty($_FILES)) { $this->headers = array('Content-type' => 'text/html'); } }