Implement file uploading.