How to send a file field with Zend\Http\Client (when the field is empty)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to send a file field with Zend\Http\Client (when the field is empty)

yosmanyga
This post has NOT been accepted by the mailing list yet.
I need to send a form containing a file field. But if this field is empty i need to submit it too. So I can get in server this array when printing $_FILES:

Array
(
    [my_file] => Array
        (
            [name] =>
            [type] =>
            [tmp_name] =>
            [error] => 4
            [size] => 0
        )

)