diff --git a/lib/screens/data_buku/data_buku.dart b/lib/screens/data_buku/data_buku.dart index de29ca7..a4a1a58 100644 --- a/lib/screens/data_buku/data_buku.dart +++ b/lib/screens/data_buku/data_buku.dart @@ -211,7 +211,10 @@ class _DataBukuState extends State { } void _pickPDF(Function setFile) async { - FilePickerResult? result = await FilePickerWeb.platform.pickFiles(); + FilePickerResult? result = await FilePickerWeb.platform.pickFiles( + type: FileType.custom, + allowedExtensions: ['pdf'], + ); if (result != null) { Uint8List? fileBytes = result.files.first.bytes; String fileName = result.files.first.name;