appwrite/docs/examples/1.7.x/server-php/examples/storage/create-file.md
2025-05-18 02:28:12 +12:00

520 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->createFile( bucketId: '', fileId: '', file: InputFile::withPath('file.png'), permissions: ["read("any")"] // optional );