From e79538be5ce50fe552c0180c169cfb275aa4ec07 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 11 Feb 2011 22:57:23 +0000 Subject: 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 --- ws.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ws.php') 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.
Use the image field for uploading file.
Set the form encoding to "form-data"
category is the numeric identifier of the destination category.' + 'POST method only.
Use the image field for uploading file.
Set the form encoding to "form-data"
category is the numeric identifier of the destination category.
You can update an existing photo if you define an existing image_id.' ); $service->addMethod( -- cgit v1.2.3