Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: add uploadBinary func to flutter docs

FatumaA440103027d66
diff --git a/spec/supabase_dart_v1.yml b/spec/supabase_dart_v1.yml
index 755d88492cc..c1af9f52256 100644
--- a/spec/supabase_dart_v1.yml
+++ b/spec/supabase_dart_v1.yml
@@ -1129,6 +1129,17 @@ functions:
fileOptions: const FileOptions(cacheControl: '3600', upsert: false),
);
```
+ - id: upload-file-on-web
+ name: Upload file on web
+ code: |
+ ```dart
+ final avatarFile = chosenFile.bytes;
+ final String path = await supabase.storage.from('avatars').uploadBinary(
+ 'public/avatar1.png',
+ avatarFile,
+ fileOptions: const FileOptions(cacheControl: '3600', upsert: false),
+ );
+ ```
- id: from-update
description: |