mirror of
https://github.com/appwrite/appwrite
synced 2026-05-13 03:59:07 +00:00
485 B
485 B
setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('') // Your project ID
->setSession(''); // The user session to authenticate with
$storage = new Storage($client);
$result = $storage->updateFile(
bucketId: '',
fileId: '',
name: '', // optional
permissions: ["read("any")"] // optional
);