Fixed bug preventing uploads from working in Chrome.