Compartmentalized file receiving in receiveFile().