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
This commit is contained in:
James 2011-10-05 11:21:13 -04:00
parent 3f495e7532
commit b90b69ebde
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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()