Changeset 11117


Ignore:
Timestamp:
May 30, 2011, 11:38:17 PM (10 years ago)
Author:
plg
Message:

bug 2299 fixed: web API, method pwg.images.addSimple returns a clean error when parameter "image" is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/include/ws_functions.inc.php

    r11115 r11117  
    14191419  {
    14201420    return new PwgError(405, "This method requires HTTP POST");
     1421  }
     1422
     1423  if (!isset($_FILES['image']))
     1424  {
     1425    return new PwgError(405, "The image (file) parameter is missing");
    14211426  }
    14221427 
Note: See TracChangeset for help on using the changeset viewer.