I am uploading a file to a SharePoint list using Copy web service. I am also updating the Title field of the uploaded file using below code.
FieldInformation obj = new FieldInformation();
obj.DisplayName = "Title";
obj.InternalName = "Title";
obj.Type = FieldType.Text;
obj.Value = "Test Title 1";
The web service is uploading the file but it does not update the title field. Title field remains same as the actual file name and does not update to 'Test title 1'.
I found the solution I was missing an additional line.
copyservice.FieldInformation[] info = { obj };