Filestack\Mixins\CommonMixin::sendDownload
Download a file to specified destination given a url
Signature
protected function sendDownload(string
$url,
string
$destination,
[FilestackSecurity
$security = NULL] )
Parameters
$url
—
string
- Filestack file url
$destination
—
string
- destination filepath to save to,
can be a directory name
$security
—
object
- Filestack security object if
security settings is turned on
Returns
- bool
- (true = download success, false = failed)
Errors/Exceptions
-
FilestackException
- if API call fails, e.g 404 file not found