This test is always true. Moreover, strrchr does handle empty strings.
Attach a file by drag & drop or click to upload