Why this: yet another 400 gpx upload error on /api/0.6/gpx/create? (using Dart/Flutter)

Answering my own question, it turns out that the first argument to MultipartFile.fromString() has to be ‘file’. This is NOT documented. I had ‘part1’ in there, but have emended it to ‘file’ so when somebody blindly copies the example they won’t waste the same time as I did on this.