这里是我的空间,是我用来记录点滴的沃土...

uploadify 上传

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="css/uploadify.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="js/jquery.uploadify.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#file_upload").uploadify({
                //'auto': false,//是否自动上传
                "formData": {
                    "timestamp": new Date()
                }, //上传form data的数据
                "swf": "uploadify.swf",
                "uploader": "../upload.ashx", //上传地址
                "buttonText": "选择文件...", //显示的字
                "progressData": "上传中.....",
                "width": 300, //宽度
                "fileObjName": "upload", //上传文件的key,后台通过这个key可以获取文件
                "fileSizeLimit": 0, //文件大小限制,0是不限制
                "onSelect": function (file) {
                    // alert('The file ' + file.name + ' was added to the queue.');
                }

            });
        });
    
    </script>
</head>
<body>
    <form method="post" enctype="multipart/form-data" action="../upload.ashx">
    <input type="file" id="file_upload" name="upload" />
    </form>
</body>
</html>
posted @ 2013-09-10 17:06  wsx2miao  Views(226)  Comments(0Edit  收藏  举报
这里是我的空间,是我用来记录点滴的沃土...