Unable to upload .ppt files even after specifing the mime type

862 views Asked by At

I am using uploadifive to upload my files. I am having problem uploading only ppt files while other files specified in the fileType are uploaded. What is going wrong? here is my code

    $(function() {
    $('#file_upload').uploadifive({
        'fileSizeLimit' : 5000,
        'fileType'     : [
            'image/jpeg',
            'image/png',
            'application/pdf',
            'text/csv',
            'text/plain',
            'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
            'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
            'application/vnd.ms-excel',
            'application/vnd.ms-powerpoint',
            'application/mspowerpoint',
            'application/x-mspowerpoint',
            'application/vnd.openxmlformats-officedocument.presentationml.presentation',
            'application/msword',
            'application/csv',
            'application/excel'
        ],
        'uploadScript' : '{{url('file/uploads')}}',
        'formData'     : {
            '_token'     : '{{csrf_token()}}'
        },
        'onInit': addFiles
    });

});

Even though the ppt mime type is specified I get an error that it is not accepted.Here is a screenshot of the error. enter image description here

1

There are 1 answers

0
Daniel Cheung On BEST ANSWER

One possibility is the server does know about the file and doesn't want to serve it?

You should check your server's settings and add a support for the file extensions.