fileType
String
false
The type of files allowed for upload. This is taken from the file’s mime type. To allow all images, set this option to ‘image’. To allow a specific type of image, set this option to ‘image/png’. To allow all images, set this value to false. This option will also accept a JSON array to allow a specific set of fileTypes.
Demo
|
1 |
<input type="file" name="file_upload" id="file_upload" /> |
|
1 2 3 4 5 6 |
$(function() {
$('#file_upload').uploadifive({
'fileType' : 'image',
'uploadScript' : '/uploadifive.php'
});
}); |

