aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-02-11 22:57:23 +0000
committerplegall <plg@piwigo.org>2011-02-11 22:57:23 +0000
commite79538be5ce50fe552c0180c169cfb275aa4ec07 (patch)
tree6640d1748fb5450e21211a94c8904217ee2103e1 /ws.php
parentcc88f221110378648abd70f6141e2db07933ebfc (diff)
feature 2189 added: ability to update a photo (the JPEG/PNG file) with
pwg.images.addSimple, simply by adding an $image_id as argument. git-svn-id: http://piwigo.org/svn/trunk@9191 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/ws.php b/ws.php
index 82a4823d8..c2d2115d7 100644
--- a/ws.php
+++ b/ws.php
@@ -233,8 +233,9 @@ function ws_addDefaultMethods( $arr )
'maxValue' => $conf['available_permission_levels']
),
'tags' => array('default' => null),
+ 'image_id' => array('default' => null),
),
- 'POST method only.<br>Use the <b>image</b> field for uploading file.<br>Set the form encoding to "form-data"<br><b>category</b> is the numeric identifier of the destination category.'
+ 'POST method only.<br>Use the <b>image</b> field for uploading file.<br>Set the form encoding to "form-data"<br><b>category</b> is the numeric identifier of the destination category.<br>You can update an existing photo if you define an existing image_id.'
);
$service->addMethod(