mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-06 07:01:30 -04:00
Update the api so it allows images to be uploaded.
This commit is contained in:
@@ -76,6 +76,9 @@ class Rest_Controller extends Controller {
|
||||
foreach (array_keys($this->input->post()) as $key) {
|
||||
$request->$key = $this->input->post($key);
|
||||
}
|
||||
foreach (array_keys($_FILES) as $key) {
|
||||
$request->$key = $_FILES[$key];
|
||||
}
|
||||
}
|
||||
|
||||
$request->method = strtolower($this->input->server("HTTP_X_GALLERY_REQUEST_METHOD", $method));
|
||||
|
||||
Reference in New Issue
Block a user