Made file uploads a little safer on the PHP side. importRuleset now checks for the presence of a file in  and then checks the MIME type of the file, if it exists. Simple echos are performed informing the client of the error, but adding exceptions may be good in the long run. No changes to the client side