You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2020. It is now read-only.
Otherwise, download the `src` directory and include all the PHP scripts in your application. If your project has an autoloader, point the `blobmimes` namespace to `src/blobmimes`.
67
+
68
+
69
+
## Reference
70
+
71
+
### check_ext_and_mime()
72
+
73
+
Verify that a file extension and MIME type belong together. Because technology is always evolving and the MIME standard is always changing, this will consider `some/thing` and `some/x-thing` equivalent.
74
+
75
+
#### Arguments
76
+
77
+
* (*string*) File extension
78
+
* (*string*) MIME type
79
+
* (*bool*) (*optional*) Soft pass. If `TRUE`, the check will return `TRUE` if it lacks information about either the extension or MIME type.
Pull path and type information for a file, using its name and/or content. If it is determined that the file is incorrectly named, alternative names with the correct file extension(s) are suggested.
97
+
98
+
#### Arguments
99
+
100
+
* (*string*) Path
101
+
* (*string*) (*optional*) Nice name. If provided, the nice name will be treated as the filename. This can be useful if passing a temporary upload, for example. Default: `NULL`
102
+
103
+
#### Returns
104
+
105
+
Returns all file information that can be derived according to the format below.
0 commit comments