Remove the test from the socket code, now that it's no longer necessary.
Attach a file by drag & drop or click to upload