aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-03-12 23:14:50 +0000
committerplegall <plg@piwigo.org>2009-03-12 23:14:50 +0000
commitf94ff8b8e180526899e17db9f4732ff82a4a876b (patch)
tree8f99c06c2e199a42890a1612cb5770c4162fc428 /ws.php
parentbd005369b0fba847ed4a4cd2fc9ec57290f6b7fb (diff)
merge r3192 from branch 2.0 to trunk
bug 941 fixed: to be able to upload heavy photo, chunk the files, send parts one by one, and then pwg.images.add merge chunks together. Now big uploads works and you can even have a fine progress bar on client side. git-svn-id: http://piwigo.org/svn/trunk@3193 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/ws.php b/ws.php
index f1d8c31af..ff2b2b805 100644
--- a/ws.php
+++ b/ws.php
@@ -173,14 +173,24 @@ function ws_addDefaultMethods( $arr )
);
$service->addMethod(
+ 'pwg.images.addChunk',
+ 'ws_images_add_chunk',
+ array(
+ 'data' => array(),
+ 'original_sum' => array(),
+ 'type' => array(),
+ 'position' => array(),
+ ),
+ 'POST method only. For admin only.'
+ );
+
+
+ $service->addMethod(
'pwg.images.add',
'ws_images_add',
array(
- 'file_content' => array(),
'file_sum' => array(),
- 'thumbnail_content' => array(),
'thumbnail_sum' => array(),
- 'high_content' => array('default' => null),
'high_sum' => array('default' => null),
'original_sum' => array(),
'name' => array('default' => null),