https://domain.com:2083/frontend/x3/...kg=packagename
This is where I am at (obviously not domain.com but you get the idea)
--Favorite Icon (must be an ico) --> The field that I am trying to upload a .ico to
--The error --> Inputs not Valid - The image must be either .jpg, .png, or .gif.
cPanel directly asks for an .ico and then tells me no
I was able to manually change the file /home/invexdes/cpanelbranding/x3/sundaymorning/favicon.png to /home/invexdes/cpanelbranding/x3/sundaymorning/favicon.ivo which works in firefox; however it does not work in IE. (Not that IE is a browser any one should use - but they do)
Here is cPanel's validation function - as you can see nothing about ico:
Code:
<script type="text/javascript">
function register_validators() {
/* generate validators */
<?cp Branding::brandingeditor(register_validator[['match'\{comma}'jpg_gif_png_jpeg'\{comma}\{leftbracket}document.getElementById[['uifile%']]\
{rightbracket}\{comma}'$LANG{'ValidatorImageType'}'\{comma} function [[]] {
return [[document.getElementById[['uifile%']].value == '' ? false: true]];
}]];
,number,number) imgtype=ui ?>
realtime_validate_init('mainform');
}
YAHOO.util.Event.addListener(window, "load", register_validators, false);
</script>
So what is the fix for this? - (And yes I attempted to edit their validation script to allow ico - no go)