Problems uploading Media

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Problems uploading Media

Post by wygigs » 31 Dec 2015, 13:08

Hi,

I am trying to upload an image in Admin | Media : New (Default). I type in a new label, and click the square at the bottom that says 'Click to Upload'. I select a jpeg image from my local machine, but then receive an error 'No method for retrieving the mime type available: finfo, mime_content_type'.
Have I missed some configuration somewhere? So far all I appear to have configured in respect of this is to create a folder called uploads in my public folder.
I'm using XAMPP on Windows 10.

User avatar
aimeos
Administrator
Posts: 3115
Joined: 01 Jan 1970, 00:00

Re: Problems uploading Media

Post by aimeos » 31 Dec 2015, 16:13

Your PHP installation misses the finfo class which is part of PHP since 5.3:
http://php.net/manual/en/class.finfo.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Re: Problems uploading Media

Post by wygigs » 31 Dec 2015, 17:01

Thank you. I had it commented out in php.ini, so I simply removed the ; in front of extension=php_fileinfo.dll and restarted Apache.
I also added 'directory' => '/uploads', to the media / default / upload array in shop.php

Thanks again

Post Reply