Fixed directive sendFile method.