Skip to content
pubscout

file_picker_web

4.2.1, released 10 days ago by victorcarreras.dev

Web implementation of file_picker for selecting, streaming, and saving files in browsers.

WASM-ready
$ flutter pub add file_picker_web
Source repository

What it does

Provides a browser file selection dialog, streams file contents in chunks, and supports saving files via the browser's save dialog. It integrates with the generic file_picker API as the web platform implementation.

AI-written summary of version 4.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need file picking or saving functionality in a Flutter web app
  • You require streaming large files to avoid loading them fully into memory

Skip it when

  • Your app targets mobile or desktop only (use the main file_picker package)
  • You need advanced file system access beyond what browsers expose

Strengths

  • Handles file selection, streaming, and saving on web
  • Fixes common edge cases like cancellation and empty files
  • Exposes save dialog support detection

Weaknesses

  • Only works on web platforms
  • Limited to browser capabilities, no native file system access

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
5
import 'package:file_picker/file_picker.dart';

void pickFile() async {
  final result = await FilePicker.platform.pickFiles();
  if (result != null) {
    // Use result.files.first
  }
}

Alternatives

Packages that do the same job and could replace file_picker_web.

Works with

Packages commonly used together with file_picker_web: ones it builds on, ones built on it, and its own family.