mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Allow XML mimetypes
This commit is contained in:
parent
92ace8582d
commit
7bf1664b8f
|
@ -825,7 +825,7 @@ class LicensesController extends Controller
|
||||||
foreach (Input::file('licensefile') as $file) {
|
foreach (Input::file('licensefile') as $file) {
|
||||||
|
|
||||||
$rules = array(
|
$rules = array(
|
||||||
'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf,lic|max:2000'
|
'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf,xml,lic|max:2000'
|
||||||
);
|
);
|
||||||
$validator = Validator::make(array('licensefile'=> $file), $rules);
|
$validator = Validator::make(array('licensefile'=> $file), $rules);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ return array(
|
||||||
'error' => 'File(s) not uploaded. Please try again.',
|
'error' => 'File(s) not uploaded. Please try again.',
|
||||||
'success' => 'File(s) successfully uploaded.',
|
'success' => 'File(s) successfully uploaded.',
|
||||||
'nofiles' => 'You did not select any files for upload, or the file you are trying to upload is too large',
|
'nofiles' => 'You did not select any files for upload, or the file you are trying to upload is too large',
|
||||||
'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, rar, rtf, and lic.',
|
'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, rar, rtf, xml, and lic.',
|
||||||
),
|
),
|
||||||
|
|
||||||
'update' => array(
|
'update' => array(
|
||||||
|
|
Loading…
Reference in a new issue