#669 - fix file upload not working