file-type
Detect file extension by content.
file-type url=VALUE [insecure=VALUE]
- url=VALUE
- Required. Target file url, formatted as scheme://profile/path or an http(s) url. Wildcard is allowed in the file name of a file store url.
- insecure=VALUE
- Optional. t to skip TLS certificate and hostname verification for an https url. Default is f.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| url | String | File url | File store url or http(s) url of the file |
| file_size | Long | File size | Size in bytes |
| file_type | String | File type | pptx, docx, xlsx, pdf, png, jpeg, exe, zip or unknown |