Hallo,
hab es doch noch nicht aufgeben, so geht es
if($_POST["abschicken"]){
$files = array();
foreach ($_FILES['uab_bild'] as $k => $l) {
foreach ($l as $i => $v) {
if (!array_key_exists($i, $files))
$files[$i] = array();
$files[$i][$k] = $v;
}
}
foreach ($files as $pos=>$file) {
$upload = new upload($file);
if($upload->uploaded){
$helper = new helper();
$token = $helper -> token('albenImage_',1,'32');
$upload->file_new_name_body = $token;
$upload->process('media/bilder/gross/');
if($upload->processed){
$upload->file_dst_name;
$upload->file_new_name_body = $token;
$upload->image_resize = true;
$upload->image_x = 100;
$upload->image_ratio_y = true;
$upload->process('media/bilder/klein/');
if ($upload->processed) {
$filename = $upload->file_dst_name;
$sql = mysql :: instance();
$sql->table('user_alben_bilder')
->data($_POST)
->data('uab_ip',$_SERVER['REMOTE_ADDR'])
->data('uab_albenID',$album)
->data('uab_bild',$filename)
->data('uab_userID',$user)
->ignore(array('abschicken'))
->insert();
}
$upload->clean();
unset($upload);
}
}
}
}