string $fieldName Name of the field:
string $filename Path to the file:
string $contentType Content-Type of the upload:
public function __construct($fieldName, $filename, $contentType = null) {
$this->fieldName = $fieldName;
$this
->setFilename($filename);
$this->contentType = $contentType ?: $this
->guessContentType();
}