filestack-php
filestack-php copied to clipboard
bad request on executing the download
{ try{ $products = new UploadModel(); $data = $products->find($id); $decode_data = json_decode($data->json); $client = new FilestackClient($decode_data->cilent);
$destination = 'uploads/'.$data->pdf;
$result = $client->download($decode_data->filelink->handle,$destination);
}
catch (FilstackException $e){
echo $e->getMessage();
echo $e->getCode();
}
}