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
This commit is contained in:
plegall
2011-02-11 22:57:23 +00:00
parent cc88f22111
commit e79538be5c
4 changed files with 233 additions and 112 deletions
+2 -1
View File
@@ -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(