title: How to upload image file using Multipart?
body: <p>I tried to upload my profile Image file with cookie to my server. But I don't know how to upload it.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>  _submit() async {
      Api.updateUserProfileImage(
        context,
        _image,
        await Provider.of&lt;AccountState&gt;(context, listen: false)
            .storage
            .read(key: "cookie"),
      );
    }
  </code></pre>
  
  <pre><code>  static void updateUserProfileImage(
        BuildContext context, File image, String cookie) async {}
  </code></pre>