Changeset 3193 for trunk/ws.php


Ignore:
Timestamp:
Mar 13, 2009, 12:14:50 AM (15 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r3185 r3193  
    174174
    175175  $service->addMethod(
     176    'pwg.images.addChunk',
     177    'ws_images_add_chunk',
     178    array(
     179      'data' => array(),
     180      'original_sum' => array(),
     181      'type' => array(),
     182      'position' => array(),
     183      ),
     184    'POST method only. For admin only.'
     185    );
     186 
     187
     188  $service->addMethod(
    176189    'pwg.images.add',
    177190    'ws_images_add',
    178191    array(
    179       'file_content' => array(),
    180192      'file_sum' => array(),
    181       'thumbnail_content' => array(),
    182193      'thumbnail_sum' => array(),
    183       'high_content' => array('default' => null),
    184194      'high_sum' => array('default' => null),
    185195      'original_sum' => array(),
Note: See TracChangeset for help on using the changeset viewer.