File upload implementation.