• Resolved htw1179

    (@htw1179)


    when trying to attach a pdf, doc or docx file I receieve a “Sorry, you are not allowed to upload this file type” message. This use to work with the code below. It continues to work successfully for images(jpg, png, jpeg).

    See my code below :

    <label>Please attach any additional documents describing your project here using a .pdf, docx or doc extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-document-file] filetypes: pdf|doc|docx limit:15mb]</label>

    <label>Please attach any pictures or images you may have of your proposed project using a .jpg, png or jpeg extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-picture-file] filetypes: jpg|png|jpeg limit:15mb]</label>

    I have been dealing with this issue for months and clients are getting upset!

    Any help would be greatly appreciated

    • This topic was modified 3 years ago by htw1179.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter htw1179

    (@htw1179)

    thepatioschestnutcreek.com

    thanks for helping me

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where on the site do you have the form having the issue?

    Thread Starter htw1179

    (@htw1179)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    <label>Please attach any additional documents describing your project here using a .pdf, docx or doc extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-document-file] filetypes: pdf|doc|docx limit:15mb]</label>
    
    <label>Please attach any pictures or images you may have of your proposed project using a .jpg, png or jpeg extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-picture-file] filetypes: jpg|png|jpeg limit:15mb]</label>

    Remove the unnecessary ]s.

    Thread Starter htw1179

    (@htw1179)

    I attached a pdf and a png file to the email. The Pdf gave me the error cannot accept this file type and the png file worked as it usually does.

    I do not know how to attach files to this forumn, if you can at all. I also do not understand the comment remove unnecessary ] s. I did not see any in unnecessary ] s in my code. once again thank you for helping me. it initially worked with the code I provided however several months ago, it just quit working.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    [file your-project-document-file] filetypes: pdf|doc|docx limit:15mb]
                                    ^ REMOVE THIS "]"
    Thread Starter htw1179

    (@htw1179)

    I removed unnecessary ] s for your-project-document-file and your-project-picture-file as shown below: the error regarding not allowing this file type for pdf still occurs. It continues to work for images(png,jpeg, png). I did have to reduce my file size from 15 mb to 10 mb because it was to large.

    Again I really appreciate you helping me!!!

    Please attach any additional documents describing your project here using a .pdf, docx or doc extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-document-file filetypes: pdf|doc|docx limit:10mb]

    Please attach any pictures or images you may have of your proposed project using a .jpg, png or jpeg extension only. Please do not exceed a file size of 15 megabytes (optional) [file your-project-picture-file filetypes: jpg|png|jpeg limit:10mb]

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    That’s because you have extra whitespace after the filetypes: keyword. See File uploading and attachment and use correct form-tag syntax.

    Thread Starter htw1179

    (@htw1179)

    Thank you so much you were so patient and helpful. Contact Form 7 is a great product you should be very proud!!!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Contact Form 7 not allowing pdf to be attached’ is closed to new replies.