lundi 8 juin 2020

How can validate xlsm excel file in laravel and in valid_file_mimetypes

in ifm.config file i have this code:

// available since v1.3.0
    // only when '/laravel-filemanager?type=Files'
    'valid_file_mimetypes' => [
        'image/jpeg',
        'image/pjpeg',
        'image/png',
        'image/gif',
        'image/svg+xml',
        'application/pdf',
        'text/plain',
        'video/mp4',
        'application/vnd.ms-excel',

        'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
        'application/vnd.openxmlformats-officedocument.presentationml.presentation',
        'application/vnd.ms-powerpoint',
        'application/msword',
        'application/zip',
        'audio.mpeg',
        'audio/aac'
    ],

How can validate xlsm excel file in laravel ? when I want to upload this file type in file manager, I recived error that "you cant't upload file of this type"



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3gZ9tEB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire