• Resolved acquacalda

    (@acquacalda)


    Hi everyone,
    I have a problem uploading jpg images on Contact form 7 module:

    suddenly, one of the contact forms on my site stopped allowing the upload of the image file.
    I tried several times but despite having authorized the jpg file type I can’t upload them.

    The message that appears is this: “It is not allowed to upload files of this type.”

    My code is this: [file file-2 limit:5mb filetypes:jgp|png|jpeg]

    I checked, it is not a file size problem because I have tried to carge very small jpg files, uner the limit of 5mb.

    With pngs it works, so I don’t think it can be a php problem or memory limit.

    I have not changed anything in this form recently.

    What do you think the problem could be?

    Thank you for any help you could give me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter acquacalda

    (@acquacalda)

    Hi Miyoshi,

    sure, this is the page:

    https://www.collprimvasc.org/iscrizione/

    At the moment, in order to get the module working, I have removed restrictions about file type; but the code there was before is this: [file file-2 limit:5mb filetypes:jgp|png|jpeg].

    Thanks,

    Sara

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    [file file-2 limit:5mb filetypes:jgp|png|jpeg]

    You can’t upload .jpg files through this field because you don’t have jpg in the filetypes option. You have jgp though.

    Thread Starter acquacalda

    (@acquacalda)

    Hi Miyoshi,

    problem solved. The strange thing is that that code was online by years and it has worked well until now despite the error!

    Thank you very much for your help.

    Best regards,

    Sara

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

The topic ‘Problem uploading jpg’ is closed to new replies.