From 8fe1990c99642cf174637098d7a4578b85ccb0a2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 04:20:25 +0000 Subject: Don't set the document type to JSON when uploading photos. --- core/controllers/albums.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 948eda12..2bb535e5 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -98,7 +98,9 @@ class Albums_Controller extends Items_Controller { private function _create_photo($album) { access::required("edit", $album); - rest::http_content_type(rest::JSON); + // If we set the content type as JSON, it triggers saving the result as + // a document in the browser (well, in Chrome at least). + // @todo figure out why and fix this. $form = photo::get_add_form($album); if ($form->validate()) { $photo = photo::create( -- cgit v1.2.3