• Resolved RED_Android

    (@red_android)


    Hi there, I am getting this message whenever I try to upload a pdf, doc, or docx file, even though I have allowed these file types in the form.

    I have tried adding this line to my functions.php that I found in a forum post, but it did not do anything. I am not sure how to modify it to include doc and docx either.

    function my_myme_types($mime_types){
    $mime_types[‘pdf’] = ‘application/pdf’; //Adding pdf files
    return $mime_types;
    }

    This is my field:
    [mfile* upload-reg limit:5242880 filetypes:pdf|doc|docx|png|jpg|bmp min-file:1 max-file:1]

    EDIT: I found the problem, I have 2 upload fields with the same name.

    • This topic was modified 2 years, 7 months ago by RED_Android.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks, I’ve checked your site and I can see that you have already figured out the issue.

    I can now upload pdf, doc and docx file.

Viewing 1 replies (of 1 total)
  • The topic ‘Uploaded file is not allowed for file type’ is closed to new replies.