When I try to upload images from a web browser, I receive an exception: “Unsupported operation: MultipartFile is only supported where dart:io is available.”
Environment I am currently using:
Flutter (Channel stable, 2.10.1, on macOS 11.4 20F71 darwin-x64, locale en-GB)
• Flutter version 2.10.1 at /Users/macbook/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db747aa133 (3 months ago), 2022-02-09 13:57:35 -0600
• Engine revision ab46186b24
• Dart version 2.16.1
• DevTools version 2.9.2
Does anybody know what could the issue ?