Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 2d871a4

Browse files
author
Jamie Snape
committed
Fix backward compatibility with upload API
1 parent 4ba5ca7 commit 2d871a4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

core/controllers/api/SystemController.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ public function postAction()
9191
);
9292
}
9393

94+
/**
95+
* The put action handles PUT requests and receives an 'id' parameter; it
96+
* should update the server resource state of the resource identified by
97+
* the 'id' value.
98+
*/
99+
public function putAction()
100+
{
101+
$apiFunctions = array(
102+
'upload' => 'uploadPerform',
103+
);
104+
$this->_genericAction(
105+
$this->_request->getParams(),
106+
$this->_request->getControllerName(),
107+
'put',
108+
$apiFunctions
109+
);
110+
}
111+
94112
/**
95113
* The options action handles OPTIONS requests; it should respond with
96114
* the HTTP methods that the server supports for specified URL.

0 commit comments

Comments
 (0)