From cb171bcac5c4ccbb347f370e3d2b28783378c0b2 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Mar 2015 13:25:28 -0700 Subject: [PATCH] Fixes #645 - adds zip and rar to filetype --- app/controllers/admin/LicensesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/LicensesController.php b/app/controllers/admin/LicensesController.php index 65670dfe643b..4af089534a9e 100755 --- a/app/controllers/admin/LicensesController.php +++ b/app/controllers/admin/LicensesController.php @@ -668,7 +668,7 @@ public function postUpload($licenseId = null) foreach(Input::file('licensefile') as $file) { $rules = array( - 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt|max:2000' + 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar|max:2000' ); $validator = Validator::make(array('licensefile'=> $file), $rules);