• I have added a file field to my C7F with the following code in the form template:
    [file your-file]
    And the following code in the Mail template under File attachment:
    [your-file]

    When I test the form in Chrome by clicking the “Choose File” input, nothing happens (i.e. there is no window that triggers to select a file). ONLY in Chrome does this issue happen. Firefox and Safari work just fine.

    What I tried:

    • Deactivating all plugins
    • Current theme is a child of Twenty Twenty, so I tried switching to a different theme
    • Clearing site cache as well as browser cache and opening site in an Incognito window
    • Added this code to the functions.php file
    • add_action('wpcf7_before_send_mail', 'save_application_form' );
      
      function save_application_form($wpcf7) {
          $submission = WPCF7_Submission::get_instance();
          $files = $submission->uploaded_files();
      }

    I’m completely out of ideas at this point and would appreciate any help.

    • This topic was modified 4 years, 4 months ago by dledet.

    The page I need help with: [log in to see the link]

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

    (@takayukister)

    I tested the page with Chrome on Mac, but didn’t see such a file field issue you mentioned.

    However, page cache used on the site seems to be causing problems and that makes reCAPTCHA issues. So, the form wouldn’t work anyhow.

    Thread Starter dledet

    (@dledet)

    Any suggestions for how to resolve the page cache issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File field (Chrome only) – not triggering upload window’ is closed to new replies.