Skip to content

Better handling of existing files #1947

@Gabbar-v7

Description

@Gabbar-v7
final resultPath = await FilePicker.platform.saveFile(
        fileName: "Ascent.bak",
        bytes: Uint8List.fromList(dbFileBytes),
        type: FileType.custom,
        allowedExtensions: ['bak'],
      );

The above line for android saves the file as Ascent.bak (1) if the file aready exists in the directory. It should use the name Ascent (1).bak if file already exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions