flutter_file_dialog icon indicating copy to clipboard operation
flutter_file_dialog copied to clipboard

Wrong return path on not choosing folder

Open jlnrrg opened this issue 3 years ago • 1 comments

Issue

When I save a file on android and do not chose a folder, but just hit save the return value is: /document/63 (the number is counted upward)

Code, which uses this package

    String? realDownloadPath;
    if (Platform.isAndroid) {
      final params =
          SaveFileDialogParams(sourceFilePath: file?.path, localOnly: true);
      realDownloadPath =
          (await FlutterFileDialog.saveFile(params: params)) ?? file?.path;
    } 

Visuals

https://user-images.githubusercontent.com/77293597/146023550-a77f3197-2ff8-4297-8cf9-bba2cea2b125.mp4

Versions

  • Android 12
Flutter 2.8.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision cf44000065 (6 days ago) • 2021-12-08 14:06:50 -0800
Engine • revision 40a99c5951
Tools • Dart 2.15.0

jlnrrg avatar Dec 14 '21 15:12 jlnrrg

@jlnrrg Have you find a fix or workaround to get the full Android URI scheme at save?

gaetandezeiraud avatar Nov 09 '22 17:11 gaetandezeiraud