+ throw new Exception('bestand niet goed ontvangen: '.$input['error']);
+ }
+
+ if (isset($target)) {
+ if (!file_exists($target) and !@mkdir($target, 0777, TRUE)) {
+ throw new Exception("bestand kon niet geplaatst worden in $target");
+ }
+ $target .= '/';