Hello, I am working on a custom website where our clients and employees can upload, download and share files on DreamObjects. So far so good using the SDK provided until today.
I tried to to add a script to allow users to add new buckets and I am getting an error.
Here is my code:
$client->createBucket(array(‘Bucket’ => $_POST[‘newbucketname’]));
Here is my error:
Fatal error: Call to a member function createBucket() on a non-object in /home/xxx/xxx.com/registered.php on line 22
Do you know what I am doing wrong?
Up until this point I have been able to view buckets and objects within a bucket once it is selected. All this activity happens on the same php page. Thanks!