Implement fog for file uploading