Specify a proper sample image and include it in the example so that
the example actually works.
This commit is contained in:
parent
214b362f29
commit
f5d2c065dc
@ -37,9 +37,9 @@ alert("New title: <b>{$album->data->entity->title}</b>");
|
||||
|
||||
$photo = Gallery3::factory()
|
||||
->set("type", "photo")
|
||||
->set("name", "Sample Photo.jpg")
|
||||
->set("name", "Sample Photo.png")
|
||||
->set("title", "Sample Photo")
|
||||
->set_file("/tmp/foo.jpg")
|
||||
->set_file("gallery.png")
|
||||
->create($album->url, $auth);
|
||||
alert("Uploaded photo: <b>{$photo->url}</b>");
|
||||
alert("Album members: <b>" . join(", ", $album->data->members) . "</b>");
|
||||
|
BIN
client/gallery.png
Normal file
BIN
client/gallery.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user