Files
sdk-for-flutter/docs/examples/storage/update-file.md
T
2025-04-25 17:53:03 +00:00

415 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 );