Skip to content

Commit

Permalink
remove the fallback for mime type detected, too error prone. closes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Nov 4, 2015
1 parent c8b163b commit 73b3abf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ public function validate()
$this->addError(UPLOAD_ERR_NO_FILE);
}

// always use the more specific of the mime types available
if (in_array($this->container['mimetype'], array('text/plain', 'application/octet-stream')) and $this->container['type'] != $this->container['mimetype'])
{
$this->container['mimetype'] = $this->container['type'];
}

// make sure it contains something valid
if (empty($this->container['mimetype']) or strpos($this->container['mimetype'], '/') === false)
{
Expand Down

0 comments on commit 73b3abf

Please sign in to comment.