cancel
Showing results for 
Search instead for 
Did you mean: 

File validation failed

SOLVED
Highlighted

Re: File validation failed

 It did not work. 

Replace

return $this->fileMime->getMimeType($this->_file['tmp_name']);

with

return $this->_file['type'];

works for me

Highlighted

Re: File validation failed

It worked!! Thanks

Highlighted

Re: File validation failed

Installing "FILEINFO" php extension on server worked for.

 

Jay Kherde
Highlighted

Re: File validation failed

Thanks, my problem was caused by changing php versions in cpanel and forgetting to tick the filinfo box, thanks

Highlighted

Re: File validation failed

Thanks 


@PaginasWebdotPE wrote:

i installed a demo with content in 2.2.6 and experienced the same issue, however, after installing "PHP Fileinfo module" it works, looks like that module is also required Smiley Happy




after installing php71-php-fileinfo using easy apache 4 on whm image files now upload

 

Highlighted

Re: File validation failed

Thank you I enabled the module and it works fine!Smiley Wink

Highlighted

Re: File validation failed

Re: File validation failed

 It did not work. 

Replace

return $this->fileMime->getMimeType($this->_file['tmp_name']);

with

return $this->_file['type'];

works for me

Highlighted

Re: File validation failed

worked for me thanks

Highlighted

Re: File validation failed

Edit php.ini and enable extension fileinfo

Highlighted

Re: File validation failed

Very simple,  use

return $this->_file['type'];

instead of 

return $this->fileMime->getMimeType($this->_file['tmp_name']);