Added file upload handling