• Resolved VR Webs

    (@net4earning)


    i have a form with a file field, want to process that field using the php code. but don’t know how to get the file stored in a variable? can somebody help me?

    thanks in advance

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

    (@takayukister)

    Thread Starter VR Webs

    (@net4earning)

    thanks for the quick response

    i created a function to send that file to some other server thru API call, so i just want to retrieve that file and send it to that server. i used this code

    if ($contact_form->id() === $form_id) {
    $submission = WPCF7_Submission::get_instance();
    if ($submission) {
    $posted_data = $submission->get_posted_data();
    $files = $submission->uploaded_files();

    • This reply was modified 11 months ago by VR Webs. Reason: not relolved
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get file field value’ is closed to new replies.