Open Krison13425 opened 3 years ago
{ 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(); } }
{ try{ $products = new UploadModel(); $data = $products->find($id); $decode_data = json_decode($data->json); $client = new FilestackClient($decode_data->cilent);