-
Notifications
You must be signed in to change notification settings - Fork 105
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
Flutter web application download failed - path = Something went wrong, please report the issue https://www.github.com/incrediblezayed/file_saver/issues #51
Comments
I am also getting in this issue works fine localhost but doesnt work on the web code is similar to yours: In need of a solution |
I'll get the solution asap, but I'm on vacation for 10 days unfortunately, on November, I'll bring the solution |
oh sorry forgot to update this i did find a solution to this the code i used came cakked cross_file, link: https://pub.dev/packages/cross_file String fileName =
'${event.invoice.projectNumber}-${event.invoice.invoiceNumber} Invoice.pdf';
Uint8List fileData = await pdf.save();
const String mimeType = 'application/pdf';
final XFile pdfFile =
XFile.fromData(fileData, mimeType: mimeType, name: fileName);
await pdfFile.saveTo(fileName); |
Hi @ranvirsahota, please test the latest updates and let me know |
I'm receiving this error as well. But why does saveFile() return an error string instead of throwing an exception??? |
Getting same issue in latest version file_saver: ^0.2.9 |
Hi,
I tried this package to download the pdf file in flutter web application using the below code and its working fine if i run this web application in localhost.
But if i deploy in server (firebase hosting) and then if i try then i get the below error. any idea? anything blocking in server?
path = Something went wrong, please report the issue https://www.github.com/incrediblezayed/file_saver/issues
appreciate your response!
The text was updated successfully, but these errors were encountered: