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:
parent
3f495e7532
commit
b90b69ebde
|
@ -105,6 +105,7 @@ class Application_Form_SupportSettings extends Zend_Form
|
||||||
'minheight' => 200,
|
'minheight' => 200,
|
||||||
'maxwidth' => 600,
|
'maxwidth' => 600,
|
||||||
'maxheight' => 600));
|
'maxheight' => 600));
|
||||||
|
$upload->setAttrib('accept', 'image/jpeg');
|
||||||
$this->addElement($upload);
|
$this->addElement($upload);
|
||||||
|
|
||||||
//enable support feedback
|
//enable support feedback
|
||||||
|
|
|
@ -431,7 +431,6 @@ class AirTimeApiClient(ApiClientInterface):
|
||||||
url = url.replace("%%fileid%%", str(response[u'id']))
|
url = url.replace("%%fileid%%", str(response[u'id']))
|
||||||
url = url.replace("%%showinstanceid%%", str(md['MDATA_KEY_TRACKNUMBER']))
|
url = url.replace("%%showinstanceid%%", str(md['MDATA_KEY_TRACKNUMBER']))
|
||||||
url = url.replace("%%api_key%%", self.config["api_key"])
|
url = url.replace("%%api_key%%", self.config["api_key"])
|
||||||
logger.debug(url)
|
|
||||||
|
|
||||||
req = urllib2.Request(url)
|
req = urllib2.Request(url)
|
||||||
response = urllib2.urlopen(req).read()
|
response = urllib2.urlopen(req).read()
|
||||||
|
|
Loading…
Reference in New Issue