filestack/filestack-php

bad request on executing the download

Krison13425 opened this issue · 0 comments

{
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();
}   
}