File upload function not working in Chrome