• Hello,

    I’m having a problem with API integration in CF7.

    Lemme explain further.

    So basically I’m using contact form for users to send data, which is redirected via API to my Laravel service.

    So I’m having a problem when user uploads a file, my micro service only gets title of that file, to be precise it gets only a string without uploaded file. I’ve tried to debbug this for a while, and I’ve found that there is a problem with CF7 in this case. My service works when using postman to send data, I’ll show you some log examples below.

    This is what I should get:

    'file_zk' =>
      Illuminate\Http\UploadedFile::__set_state(array(
         'test' => false,
         'originalName' => 'Screenshot_20181221_150808.png',
         'mimeType' => 'image/png',
         'error' => 0,
         'hashName' => NULL,
      )),

    This is the problematic one, the one I get:

    `’file_vlasnicki_plan’ => ‘5e43d46f65f5d.pdf’,
    ‘file_vlasnicki_list’ => ‘karolina-nadi.pdf’,
    ‘file_izvod_plana’ => ‘icbtech-2.png’`

    Thank you in advance!

The topic ‘CF7 API integration file upload issue’ is closed to new replies.