- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
It worked!! Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
Installing "FILEINFO" php extension on server worked for.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
Thanks, my problem was caused by changing php versions in cpanel and forgetting to tick the filinfo box, thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
after installing php71-php-fileinfo using easy apache 4 on whm image files now upload
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
Thank you I enabled the module and it works fine!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
worked for me thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
Edit php.ini and enable extension fileinfo
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: File validation failed
Very simple, use
return $this->_file['type'];
instead of
return $this->fileMime->getMimeType($this->_file['tmp_name']);