Fix for file uploads not working.