Tuesday, 17 September 2013

Uploadify - HTML5 version File extenstions not working?

Uploadify - HTML5 version File extenstions not working?

I am using uploadify HTML5 version (just brought and downloaded the
latest). However my problem is to show only selected given fileextenstions
in the popup dialog box is not working as expected, it shows all files. As
far as i am concern my coding below is exactly like the demo in the
website. It works fine with all the other functionality like uploading,
buttontext...etc only issue is i want to show only files of given type in
the popup dialog box.
<div id="logoqueue"></div>
<form>
<input id="logo" name="logo" type="file">
<span style="font-size:9px">* JPG,PNG,GIF files only </span>
<script type="text/javascript">
$(function() {
$('#logo').uploadifive({
'auto' : true,
'method' : 'post',
'fileTypeDesc' : 'Image Files',
'fileTypeExts' : '*.jpg;*.png;*.gif;*.jpeg;',
'fileSizeLimit' : '5MB',
'formData' : {'uniqID':'67867868'},
'queueID' : 'logoqueue',
'uploadScript' : '/ajax/uploadlogo.php',
'fileTypeDesc': 'Select Image',
'onUploadComplete' : function(file, data) {
//console.log(data);
}
});
});
</script>
Does anyone feel anything fishy here ? please note i am using the HTML 5
version not the free flash version.

No comments:

Post a Comment