Jump to content


Can't upload images


4 replies to this topic

#1 wwwampy

    Member

  • Members
  • PipPip
  • 10 posts

Posted 11 April 2018 - 12:45 PM

Hi,

all my images in KB are gone and I can't upload any new ones.

All I can see is this:

Attached Image: image.png

Please, I need some assistance here.

#2 wwwampy

    Member

  • Members
  • PipPip
  • 10 posts

Posted 11 April 2018 - 06:06 PM

The link to image is:

https://xxx/getfile.php?file=&id=db1191b065ff711e9a583e78b9811b6b

But if I add this to browser I get HTTP error 500.


I've also found this in my server error log:

PHP Fatal error:  Uncaught Error: Call to undefined function mime_content_type() in /home/xxx/public_html/podpora/getfile.php:29


#3 capella

    Member

  • Members
  • PipPip
  • 29 posts

Posted 11 April 2018 - 09:17 PM

This happened because of a recent change in getfile.php
If you are on Windows you may need to enable the php_fileinfo extension.

This link might help:
https://community.xi...einfo-in-php/78

#4 wwwampy

    Member

  • Members
  • PipPip
  • 10 posts

Posted 12 April 2018 - 03:14 PM

Hm, I guess I need to contact my host for that (shared server).

This really should be like that? I'm running several modern forum software on shared server and never had any problem with uploading attachments.

#5 wwwampy

    Member

  • Members
  • PipPip
  • 10 posts

Posted 12 April 2018 - 03:25 PM

... Enabled fileinfo in my PHP and it works now.

Thank you for pointing me to the right direction, capella!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users