filetypes)) { // Error! This file does not have an acceptable filetype $errors[] = "Filtype ikke accepteret."; } if ($size > 5000000) { $errors[] = "Fil for stor."; } if (empty($errors)) { // Do fileupload } } }