I am trying to make a multiplet file upload in kohana 3.
i don’t know the number of files that will be uploaded. i tried doing this usind arr::roate, but it seems not being a method of kohana 3.
foreach( arr::rotate($_FILES['product_image']) as $file )
{
$variable = Upload::save($_FILES['product_image'], NULL, APPPATH . 'media' . '/');
$product_image->image = basename($variable);
}
How can I do arr::rotate in ko3?
For now, you can copy the method from a kohana2 codebase into an extended arr class. We will likely add it into Kohana 3.2.