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