Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jackkitley

    (@jackkitley)

    I sorted it with this code:

    if(isset($_FILES[$mapping[self::PARAM_SRC]])) {
    $submission = WPCF7_Submission::get_instance();
    $uploaded_files = $submission->uploaded_files();
    $post[$third] = base64_encode(file_get_contents($uploaded_files[$mapping[self::PARAM_SRC]]));
    }

    Plugin Author zaus

    (@zaus)

    Hmm…I just noticed this post, sorry. Funny because I just released a file attachment plugin that does just that – https://wordpress.org/plugins/forms-3rdparty-files/

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

The topic ‘Posting images as base64’ is closed to new replies.