Title: API &#8211; File upload is string
Last modified: February 13, 2020

---

# API – File upload is string

 *  Resolved [aleksandarpajic44](https://wordpress.org/support/users/aleksandarpajic44/)
 * (@aleksandarpajic44)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-file-upload-is-string/)
 * Hello,
 * I’m having a problem with API integration.
 * I’ve seen that there here is already ticket. I see that it is resolved, so I’m
   interested in how to fix this problem. [https://wordpress.org/support/topic/file-upload-to-api/](https://wordpress.org/support/topic/file-upload-to-api/)
 * 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 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
   API 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!
    -  This topic was modified 6 years, 1 month ago by [aleksandarpajic44](https://wordpress.org/support/users/aleksandarpajic44/).

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

 *  [George Pattichis](https://wordpress.org/support/users/pattihis/)
 * (@pattihis)
 * [6 years ago](https://wordpress.org/support/topic/api-file-upload-is-string/#post-12560264)
 * Did you ever find a solution for this? I am having the same issue…
 *  Plugin Author [Kenny Meyer](https://wordpress.org/support/users/kennymeyer/)
 * (@kennymeyer)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/api-file-upload-is-string/#post-12741044)
 * This functionality is currently not implemented. PRs are welcomed.

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

The topic ‘API – File upload is string’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-to-api-basic-auth.svg)
 * [Contact form 7 TO API + Basic Auth](https://wordpress.org/plugins/cf7-to-api-basic-auth/)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-to-api-basic-auth/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-to-api-basic-auth/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-to-api-basic-auth/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-to-api-basic-auth/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Kenny Meyer](https://wordpress.org/support/users/kennymeyer/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/api-file-upload-is-string/#post-12741044)
 * Status: resolved