Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad request on executing the download #53

Open
Krison13425 opened this issue Jun 9, 2021 · 0 comments
Open

bad request on executing the download #53

Krison13425 opened this issue Jun 9, 2021 · 0 comments

Comments

@Krison13425
Copy link

{
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();
}   
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant