From f974668ef53c529ad4f44b594393ab04043696ad Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 22 Nov 2009 23:59:14 +0000 Subject: merge r4345 from branch 2.0 to trunk 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/trunk@4348 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index cc3369bae..c2791f3c1 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', -- cgit v1.2.3