From cbe5a89a9fa6ac19f89eacf3821c3f46bc42bf3f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 22 Dec 2009 12:32:27 -0800 Subject: Update the api so it allows images to be uploaded. --- modules/rest/controllers/rest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/rest/controllers') 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)); -- cgit v1.2.3