Sometimes guessExtension doesnt return bin for pkt's
This commit is contained in:
parent
4e66990826
commit
216bd1a2cd
@ -28,6 +28,7 @@ class File extends FileBase implements \Iterator
|
|||||||
$this->z->open($this->getRealPath());
|
$this->z->open($this->getRealPath());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NULL:
|
||||||
case 'bin':
|
case 'bin':
|
||||||
if ($this->getExtension() == 'pkt' || ($path instanceof UploadedFile && $path->getClientOriginalExtension() == 'pkt')) {
|
if ($this->getExtension() == 'pkt' || ($path instanceof UploadedFile && $path->getClientOriginalExtension() == 'pkt')) {
|
||||||
$this->canHandle = TRUE;
|
$this->canHandle = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user