mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Allow uploading rtf files (#2620)
Microsoft Open License Order Confirmation's are sent in RTF format. This change allows us to upload the RTF files under View License -> File Uploads.
This commit is contained in:
parent
08f320b76a
commit
06f174adf9
|
@ -826,7 +826,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|max:2000'
|
'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf|max:2000'
|
||||||
);
|
);
|
||||||
$validator = Validator::make(array('licensefile'=> $file), $rules);
|
$validator = Validator::make(array('licensefile'=> $file), $rules);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue