File upload PHP
I'm trying upload file for PHP with SmartFile SDK, but this code don't upolad in test.txt, Instead uploaded an empty file with the name Array.
$rh = fopen("test.txt", "rb"); $rh2 = realpath("test.txt"); $response = $client->post("/path/data/", array("test.txt" => $rh)); fclose($rh); var_dump( $response);
how to upload a file ??