summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-29 04:20:25 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-29 04:20:25 +0000
commit8fe1990c99642cf174637098d7a4578b85ccb0a2 (patch)
treef5e463caeff7b32929eff5fd48d81ae36ce43c85
parent22a7983bbd17b60116437a70f79cf62464f82743 (diff)
Don't set the document type to JSON when uploading photos.
-rw-r--r--core/controllers/albums.php4
1 files changed, 3 insertions, 1 deletions
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(