2019-05-09 18:54:39 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Appwrite\Client;
|
|
|
|
use Appwrite\Services\Storage;
|
|
|
|
|
|
|
|
$client = new Client();
|
|
|
|
|
|
|
|
$client
|
2019-10-02 07:10:33 +13:00
|
|
|
->setProject('')
|
|
|
|
->setKey('')
|
2019-05-09 18:54:39 +12:00
|
|
|
;
|
|
|
|
|
|
|
|
$storage = new Storage($client);
|
|
|
|
|
|
|
|
$result = $storage->createFile(new \CURLFile('/path/to/file.png', 'image/png', 'file.png'));
|