New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading files in Flutter Web #45782
Comments
The issue you are describing involves MultipartFile which is part of the http library , Thank you |
This is the code I was trying in Flutter Web:
And this is the error I get in the Debug Console of Flutter Web: Uncaught (in promise) Error: Unsupported operation: MultipartFile is only supported where dart:io is available. |
The code posted about works. I just changed to
Uploading files to server from Flutter Web works! You can close this now. |
I'm using the new flutter release 2.2 and I'm getting the same exception when trying to upload images from chrome |
@DaniEid If you believe instead yours being an issue with flutter |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Cannot upload a file to server using a Multipart form
Steps to Reproduce
Target Platform:
Web
Target OS version/browser:
Windows 10
Chrome Version 78.0.3904.108 (Official Build) (64-bit)
Devices:
Chrome Version 78.0.3904.108 (Official Build) (64-bit)
Logs
Flutter Doctor
The text was updated successfully, but these errors were encountered: