Loop Fix

Hi,

A loop was occurring when an upload was the wrong type of file (for example, if you accidentally tried to upload a CSV file) that would fill up the error.log in Apache until the hard disk was full (or you manually stopped the process.) 

I've fixed the code so that the loop no longer occurs, but instead of echoing an error message it just pops back to the home page. Not sure what's up with that.

Thanks,
Max