SIFD-9 previous code didn't work so reverting to the old solution I found, the problem with this one is that you can only clear the file field once, it doesn't work on subsequent clicks.  I've tried a lot of different things to fix this but can't find a solution that works outside jsFiddle so I'm going to leave it like this for now.