mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
406 B
406 B
import 'package:appwrite/appwrite.dart';
Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
Storage storage = Storage(client);
File result = await storage.updateFile( bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', name: '', // optional permissions: ["read("any")"], // optional );