cancel
Showing results for 
Search instead for 
Did you mean: 

File validation failed

SOLVED

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

Re: File validation failed

It worked!! Thanks

Re: File validation failed

Installing "FILEINFO" php extension on server worked for.

 

Jay Kherde

Re: File validation failed

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

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

 

Re: File validation failed

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

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

Re: File validation failed

worked for me thanks

Re: File validation failed

Edit php.ini and enable extension fileinfo

Re: File validation failed

Very simple,  use

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

instead of 

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