SWFUpload demo
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SWFUpload - IE - Flash - File - Upload</title>
<script type="text/javascript" src="jquery-2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="swfupload.js"></script>
<script type="text/javascript" src="jquery.swfupload.js"></script>
<script type="text/javascript">
$(function(){
$('#swfupload-control').swfupload({
upload_url: "http://localhost",
file_post_name : "resource",
file_size_limit : "10240",
file_types : "*.jpg;*.png",
file_upload_limit : "0",
post_params : {
type: 'phototype'
},
flash_url : "/swfupload.swf",
button_image_url : '/img/up_btn.png',
button_width : 274,
button_height : 50,
button_placeholder_id : 'button',
debug: false
})
.bind('fileQueued', function(event, file){
$(this).swfupload('startUpload');
})
.bind('uploadSuccess', function(event, file, serverData){
alert(serverData);
console.log(serverData);
});
});
</script>
</head>
<body>
<div id="swfupload-control">
<input type="button" id="button"/>
</div>
</body>