• Hi, I have a problem with form being submitted every time I try to upload a file.

    I am using Contact Form 7 version 2.1 and WordPress 2.9.1

    Every time I send form without an attachment it works fine – no problem there.

    Then if I try to upload a file – small size gif or jpg, form gets stuck and next to ‘submit’ button rotating arrows are visible and nothing happens.

    I looked through various websites and forums, tried different hacks and tricks( changing folder permissions, .htaccess, small code changes, disabling plugins, etc..) but nothing seems to be working except – one. But still it doesn’t solve the problem in full.

    I have to stress that I tried on mac and pc, firefox, safari, ie etc.. same problem – rotating arrows..

    On one of the forums I found a hack to rem this part of code in scripts.jf file:

    /*jQuery(document).ready(function() {
    	try {
    		jQuery('div.wpcf7 > form').ajaxForm({
    			beforeSubmit: wpcf7BeforeSubmit,
    			dataType: 'json',
    			success: wpcf7ProcessJson
    		});
    	} catch (e) {
    	}
    
    	try {
    		jQuery('div.wpcf7 > form').each(function(i, n) {
    			wpcf7ToggleSubmit(jQuery(n));
    		});
    	} catch (e) {
    	}
    
    	try {
    		if (_wpcf7.cached) {
    			jQuery('div.wpcf7 > form').each(function(i, n) {
    				wpcf7OnloadRefill(n);
    			});
    		}
    	} catch (e) {
    	}
    });
    */

    Well this does the trick – a form gets sent through with attachment – but then I get an error page: Error 404 – Not Found, the address bar is displaying an address: mydomain.co.uk/contact-us#wpcf7-f1-p68-o1
    where contact-us is the page with the form.

    Potentially I could redirect this address to a Thank You page – cause form gets sent with the attachment and I receive it, great! > But the form is not checked for missing or empty input fields..

    I am sure many of you have / or / had similar problems and I was hoping that someone found a solution and could share it with others.

    I will be very thankful for any ideas!

    Ro

    ps. Takayuki Miyoshi – Many Thanks for such a simple, so useful and flexible plugin.

    https://www.ads-software.com/extend/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • If anyone is still looking at this issue – I simply changed the name and id of the submit button to anything but “submit” and it worked like a dream!

Viewing 1 replies (of 1 total)
  • The topic ‘Contact Form 7 – rotating arrows – email attachment not sent – upload failed’ is closed to new replies.