mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
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
This commit is contained in:
@@ -172,15 +172,25 @@ function ws_addDefaultMethods( $arr )
|
||||
'Returns elements for the corresponding tags. Note that tag_id, tag_url_name, tag_name an be arrays. Fill at least one of them. '
|
||||
);
|
||||
|
||||
$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),
|
||||
|
||||
Reference in New Issue
Block a user