I have added the name attribute for the file element in the PostMethod task. The name attribute is described in the documentation but not working. At the moment the filename is used as name parameter to create the httpclient FilePart instance. Thats not ok for me, i have to set the name parameter different to the filename.
name attribute added to FilePartType in PostMethodTask