maui-file-handling

Installation
SKILL.md

.NET MAUI File Handling

Critical: Always Use OpenReadAsync(), Not FullPath

Some platforms (especially Android) return content URIs, not file system paths. Reading FullPath directly will throw or return empty data.

// ❌ Breaks on Android — FullPath may be a content:// URI
var result = await FilePicker.Default.PickAsync();
var bytes = File.ReadAllBytes(result.FullPath);
Installs
25
GitHub Stars
150
First Seen
Mar 1, 2026
maui-file-handling — davidortinau/maui-skills