"ErrorException [ Error ]: Call to undefined function Fuel\Core\finfo_open()"
i have my controller:
public function action_upload()
{
if(Input::method()== 'POST')
{
Upload::get_files();
Upload::save();
}
$this->template->title = "Products";
$this->template->content = View::factory('products/upload');
}
and my upload view
<?php echo Form::open(array('enctype'=>'multipart')); ?>
<label for="image_url">Image url:</label>
<?php echo Form::input(array('name'=>'image_url', 'type'=>'file')); ?>
<?php echo Form::submit(); ?>
<?php echo Form::close(); ?>
im just trying to create a simple upload image function.. if you guyz have better way to do this please teach me how..
According to the PHP manual, fileinfo should be included in PHP as of 5.3.
On Windows, you do need the dll. On Linux, we've noticed that there are hosters that compile their own PHP binary, and use old scripts for that, so fileinfo isn't included. If that's the case here, complain.