-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unsupported operation: Unsupport download API in browser #573
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
i have the save error: errror: |
Same for me. Flutter web seems to have some issue :( |
I'm getting the same building for web |
The same is happening to me. Hope they reopen this issue. I've solve it using |
How do I re-open this issue?? |
If anyone finds a solution then please share it. I'm facing the same problem. |
Was this ever resolved? |
The same is happening to me |
Still an issue... |
It seems that still the same. Reopen pls !! :'( |
Still incomplete in web right now 😢 |
My project is using Flutter Web. It's not for production but we need the functionality for something else..
However, I got an exception caught when I used .downloaded method:
"Unsupported operation: Unsupport download API in browser"
The code I wrote is like this:
void downloadImage() async {
Dio dio = Dio();
String urlTest = 'some url string';
try {
await dio.download(urlTest, './testPic123.png'); //trying to save in local directory of my own computer
print('Success!');
} catch (error) {
print(error);
}
}
Its just a simple code
I'm using Dio version 3.0.6
Here is my Flutter doctor:
[✓] Flutter (Channel dev, v1.12.2, on Mac OS X 10.14.6 18G95, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.40.1)
[✓] Connected device (3 available)
• No issues found!
I don't know if these next information is relevant but I also have disabled CORS by adding this to my http.conf: Access-Control-Allow-Origin "*"
Moreover, this is my httpd -v
Server version: Apache/2.4.34 (Unix)
Server built: Feb 22 2019 20:20:11
I'm using MacBook Pro with Mojave OS ver 10.14.6
Any clue??
Thank you everyone!
The text was updated successfully, but these errors were encountered: