Uploaded file is not allowed for file type
-
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.
The page I need help with: [log in to see the link]
- The topic ‘Uploaded file is not allowed for file type’ is closed to new replies.