diff options
author | plegall <plg@piwigo.org> | 2009-03-12 23:09:22 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-03-12 23:09:22 +0000 |
commit | 497e753bcf4208e1adc457dbc0f406b923594343 (patch) | |
tree | 1c1db805edda1f0e928c64651d00dbd8c3618738 /ws.php | |
parent | b70496545c8b5af966cc1fb99d35dda92f8f3a81 (diff) |
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/branches/2.0@3192 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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), |