MantisBT - Piwigo
View Issue Details
0002299Piwigoweb APIpublic2011.05.08 00:432011.05.30 23:39
plg 
plg 
normalminoralways
closedfixed 
 
2.2.22.2.2 
any
Apache 1.3.x
0002299: [pwg.images.addSimple] return clean error when image parameter is missing
When a remote client calls pwg.images.addSimple it sometimes forget to give an "image" parameter and because it doesn't come in $_POST but $_FILES, it is not managed by the standard system, so we have to handle this case "manually" :

  if (!isset($_FILES['image']))
  {
    return new PwgError(405, "The image (file) parameter is missing");
  }
No tags attached.
Issue History
2011.05.08 00:43plgNew Issue
2011.05.08 00:43plgStatusnew => assigned
2011.05.08 00:43plgAssigned To => plg
2011.05.08 00:43plgbrowser => any
2011.05.08 00:43plgWeb server => Apache 1.3.x
2011.05.30 23:38svnCheckin
2011.05.30 23:38svnNote Added: 0005160
2011.05.30 23:38svnCheckin
2011.05.30 23:38svnNote Added: 0005161
2011.05.30 23:39plgStatusassigned => closed
2011.05.30 23:39plgResolutionopen => fixed
2011.05.30 23:39plgFixed in Version => 2.2.2

Notes
(0005160)
svn   
2011.05.30 23:38   
[Subversion] r11117 by plg on branch 2.2

-----[Subversion commit log]----------------------------------------------------
bug 2299 fixed: web API, method pwg.images.addSimple returns a clean error when parameter "image" is missing
(0005161)
svn   
2011.05.30 23:38   
[Subversion] r11118 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r11117 from branch 2.2 to trunk

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