function save_all() { if (!empty($_FILES)) { foreach ($_FILES as $k => $f) { if (!empty($_FILES[$k]['type'])) { $_POST[$k] = $this->save($k); } } } }