diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-22 12:32:27 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-22 12:32:27 -0800 |
commit | cbe5a89a9fa6ac19f89eacf3821c3f46bc42bf3f (patch) | |
tree | 582aed3c7bac20c64504b70725590db3ab9971c4 /modules/rest/controllers/rest.php | |
parent | fd7990735cc73b5b1494190b9c187297e588a9f6 (diff) |
Update the api so it allows images to be uploaded.
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r-- | modules/rest/controllers/rest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index 7a5ab46a..4d476a0d 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -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)); |