jeudi 8 décembre 2016

Is there anything available to display error code in luman laravel while file uploading to validated the file size and file type?

Am new for luman laravel framework and i worked with file uploading concept with file type and file size validation.

$this->validate($request, [
            'profile_picture' => 'required|mimes:jpeg,png,jpg,gif,svg|max:100',
            'pancard_image' => 'required|mimes:pdf,jpeg,png,jpg|max:100',
            'national_id_image' => 'required|mimes:pdf,jpeg,png,jpg|max:100',
            'income_proof_image' => 'required|mimes:pdf,jpeg,png,jpg,doc,docs,xlsx|max:100',
            'address_proof_image' => 'required|mimes:pdf,jpeg,png,jpg|max:100'
        ]);

Am using the validation with above code and my question is how can i display error message with error code like core php file uploading concept.suggestions welcome.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire