From b90b69ebde8d2cd3325bf3371dc93adce60e30a3 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 5 Oct 2011 11:21:13 -0400 Subject: [PATCH] CC-2926: Clicking "Choose File" in support settings to upload image defaults to "Audio/MPEG" type in Chrome - fixed - extra fix: removing debugging code from api_client.py --- airtime_mvc/application/forms/SupportSettings.php | 1 + python_apps/api_clients/api_client.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/forms/SupportSettings.php b/airtime_mvc/application/forms/SupportSettings.php index 2e0d238a3..dc20adb80 100644 --- a/airtime_mvc/application/forms/SupportSettings.php +++ b/airtime_mvc/application/forms/SupportSettings.php @@ -105,6 +105,7 @@ class Application_Form_SupportSettings extends Zend_Form 'minheight' => 200, 'maxwidth' => 600, 'maxheight' => 600)); + $upload->setAttrib('accept', 'image/jpeg'); $this->addElement($upload); //enable support feedback diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index da05e3e53..8509a7c9f 100755 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -431,7 +431,6 @@ class AirTimeApiClient(ApiClientInterface): url = url.replace("%%fileid%%", str(response[u'id'])) url = url.replace("%%showinstanceid%%", str(md['MDATA_KEY_TRACKNUMBER'])) url = url.replace("%%api_key%%", self.config["api_key"]) - logger.debug(url) req = urllib2.Request(url) response = urllib2.urlopen(req).read()