uploadFile method added