Fix file upload. In other news, I'm an idiot.