Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024


Replace an existing file

Replaces an existing file at the specified path with a new one.

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: update and select

final avatarFile = File('path/to/local/file');
final String path = await'avatars').update(
      fileOptions: const FileOptions(cacheControl: '3600', upsert: false),