Fix uploadFile