You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to send an image file with title and caption from a classic html form to a local php controller. I wanted to forward the form data to a remote webservice with Unirest, to do this I used the following method of the Body class.
I needed to send an image file with title and caption from a classic html form to a local php controller. I wanted to forward the form data to a remote webservice with Unirest, to do this I used the following method of the Body class.
The $files parameter is an array of $file, so $file can contain $filename, $mimetype and $postname.
The call_user_func method does not provide for the split of the array elements into individual parameters for Body::File().
I proceeded to fix it just like that:
The text was updated successfully, but these errors were encountered: