예제 #1
0
 /**
  * @param string $path
  * @param string $name
  * @param null $size
  * @param null $mimeType
  * @param null $error
  */
 public function __construct($path, $name, $size = null, $mimeType = null, $error = null)
 {
     $this->name = $this->getName($name);
     $this->size = $size;
     $this->mimeType = $mimeType ?: 'application/octet-stream';
     $this->error = $error ?: UPLOAD_ERR_OK;
     parent::__construct($path, UPLOAD_ERR_OK == $this->error);
 }