mardi 11 juillet 2017

Laravel 5.4 eps file not accepted by validation

I have a valid .eps file which I want to upload. My validator looks like this:

        $validator = \Validator::make( [
            'file' => $file
        ], [
            'file' => 'required|mimes:jpg,jpeg,png,tiff,psd,ai,eps,pdf'
        ] );
\dd($validator->fails());
        if ($validator->fails() ){
            ...
        }

$validator->fail() evaluates to true at the moment, causing my script to not upload the file. Because all other file extensions are working, I think this is because laravel doesn't understand the eps file type. Therefore I'd like to implement the eps mime types myself but I don't know how to do this.

Any ideas?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2udNnco
via IFTTT

Aucun commentaire:

Enregistrer un commentaire