Filestack\Mixins\CommonMixin::sendGetMetaData
Get the metadata of a remote file. Will only retrieve specific fields if optional fields are passed in
Signature
protected function sendGetMetaData(url
$url,
[array
$fields = ,
[FilestackSecurity
$security = NULL]] )
Parameters
$url
—
object
- of file
$fields
—
array
- specific fields to retrieve.
values are: mimetype, filename, size,
width, height,location, path,
container, exif, uploaded (timestamp),
writable, cloud, source_url
$security
—
object
- Filestack security object if
security settings is turned on
Returns
- array
Errors/Exceptions
-
FilestackException
- if API call fails, e.g 400 bad request