does anybody have an example of uploading images in kohana 3 without using any modules eventually ?
i used https://github.com/kohana/image/tree/3.1%2Fmaster but my error is: Fatal error: Uncaught Kohana_Exception [ 0 ]: Installed GD does not support images
is there any easy and fast way to upload files in a kohana 3 based website?
thanks!
Kohana API should help.
Basic steps are:
$array = Validation::factory($_FILES);
)$array->rule('file', 'Upload::not_empty')->rule('file', 'Upload::type', array(array('jpg', 'png', 'gif')));
)if ($array->check())
)$filepath = Upload::save($_FILES['file'], 'uploaded_file', 'upload_dir');
)This will help you :)
http://forum.kohanaframework.org/discussion/6988/ko3-k03-image-library-installed-gd-does-not-support-images/p1