Implement proxy for file upload. Fix checkstyle issues.