• Resolved stephtaryn

    (@stephtaryn)


    I have 4 file upload buttons on my page with Contact Form7.
    They each have a 2mb size limit.
    A potential client had tried uploading a file larger than 2mb (the form states the size limit but she didn’t notice this or didn’t know what size the file was that she was uploading)

    So as rightly so, a message appeared on the form saying the file is too large.
    Now what does she do to remove the file?
    If she refreshes the page she’ll have to fill in the whole form again!

    It lets her choose a different file but not change it to no file.

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • She could perhaps create a copy of the file that renames the file slightly and upload that.

    Thread Starter stephtaryn

    (@stephtaryn)

    Thanks for the suggestion. But she can’t upload that file as it’s too large and doesn’t have a smaller file to send me, just a PDF of her brochure. I set the file size limit to 2mb. It would be better if the contact form had a ‘remove file’ button rather than the site visitor having to try and find a different file to replace it with if the first one is too large or not an acceptable format etc.

    Thread Starter stephtaryn

    (@stephtaryn)

    Well, I found the answer which is great! A very lovely person made some code to do it.

    It’s here: http://kg69design.com/multiple-files-uploading-cf7.html

    Thank you thank you thank you to kg69design. It worked a treat!

    Just in case anyone does use it and has a WordPress theme, when you change the footer.php file, make sure it’s one in your Child theme (upload a copy of the footer.php file from your main theme folder to your Child theme folder using FTP software and edit then that one!), otherwise when the theme gets updated, it’ll overwrite the footer.php file you edited!

    I tweaked his code a bit so I could set the file size limit to 2mb (Contact Form 7’s default is only 1mb) and also to change the ‘delete’ link from ‘del’ to ‘Delete’. If anyone wants help with doing all this let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact Form7: form filler wants to cancel file upload’ is closed to new replies.