If there's a slash in the uri_get_suffix() return value, then it's malformed. Return NULL in this case.
Attach a file by drag & drop or click to upload