diff options
author | plegall <plg@piwigo.org> | 2011-02-11 22:57:23 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-02-11 22:57:23 +0000 |
commit | e79538be5ce50fe552c0180c169cfb275aa4ec07 (patch) | |
tree | 6640d1748fb5450e21211a94c8904217ee2103e1 /ws.php | |
parent | cc88f221110378648abd70f6141e2db07933ebfc (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 'ws.php')
-rw-r--r-- | ws.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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( |