• Resolved Suzy.2011

    (@suzy2011)


    ========= Submitting Data via PHP not working for upload file =========

    I use the method on https://cfdbplugin.com/?page_id=377 to programatically push data into the DB.

    Other fields work fine, just the upload file doesn’t work. The file name is saved in the DB, but not the file. [contact-form 5 "xxx"] works fine for upload file.

    Any help?!

    <?php
    
    $data = (object)  array(
        'title' => 'xxxx',
        'posted_data' => array
    (
    'firstname' => $_POST["firstname"],
    'mi' => $_POST["mi"],
    'lastname' => $_POST["lastname"],
    'email' => $_POST["email"],
    .....
    'uploadCv' => $_POST["uploadCv"],
    'comment' => $_POST["comment"]
    ),
    'uploadCv' => null);
    
    #do_action_ref_array( 'wpcf7_before_send_mail', array( &$data) );
    do_action_ref_array( 'fsctf_mail_sent', array( &$data ) );
    
    ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Submitting Data via PHP / upload file not working’ is closed to new replies.