Harcode de indices van de uploadarray niet. Bouw uw array in plaats daarvan dynamisch:
$i = 0;
$uploads = array();
if(move_uploaded_file($file_tmp, $file_destination)) {
$uploaded[$position] = $file_destination;
$image = ($i==0) ? 'image' : 'image_'.$i;
$uploads[$image]=$uploaded;
$i++;
}
Gebruik het dan:
$insert = DB::getInstance()->insert('stock', $uploads);