diff --git a/fedora_repository.module b/fedora_repository.module index 45fe0037..52aa116e 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -256,7 +256,7 @@ function fedora_repository_ingest_form_validate($form, &$form_state) { t('The uploaded file\'s mimetype (@mime) is not associated with this Content Model. The allowed types are: @allowed', array( '@mime' => $dformat, '@allowed' => implode(', ', $allowedMimeTypes), - )); + ))); file_delete($file); return; }