Update the api so it allows images to be uploaded.

This commit is contained in:
Tim Almdal
2009-12-22 12:32:27 -08:00
parent fd7990735c
commit cbe5a89a9f
2 changed files with 33 additions and 22 deletions
+3
View File
@@ -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));