aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-11-22 23:38:57 +0000
committerplegall <plg@piwigo.org>2009-11-22 23:38:57 +0000
commitd7f0f0f9b2146ed18df7a83f5d529f5afc9e4aad (patch)
tree4a2d5987ce543d678b1e2598c6cb0255d47055db /ws.php
parent6768482bcf5ba73a1fd429a1584134c2b213044d (diff)
feature 1051: ability to add/update a file for an existing photo. For example,
you can add the "high" later. Another example is to update the "web resized" file (new dimensions is a common example). It also works for thumbnails. Updating an existing file has no impact on the logical level (list of tags, list of categories, title, description and so on). git-svn-id: http://piwigo.org/svn/branches/2.0@4345 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index 66bab7577..2e2b8f6f9 100644
--- a/ws.php
+++ b/ws.php
@@ -183,7 +183,18 @@ function ws_addDefaultMethods( $arr )
),
'POST method only. For admin only.'
);
-
+
+ $service->addMethod(
+ 'pwg.images.addFile',
+ 'ws_images_addFile',
+ array(
+ 'image_id' => array(),
+ 'type' => array(),
+ 'sum' => array(),
+ ),
+ 'Add or update a file for an existing photo. pwg.images.addChunk must have been called before (maybe several times)'
+ );
+
$service->addMethod(
'pwg.images.add',