Add uploadFile method