剑道文件上传:检索上传文件的详细信息..?

时间:2015-02-23 09:06:34

标签: jquery kendo-ui

如何使用同步模式检索上传文件的详细信息..

<form method="post" id="form" action="file.htm">
    <label for="control">Control: <input id="control" type="checkbox"/></label>
    <input name="photos" id="photos" type="file"/>
    <input id="send" class="k-button" type="button" value="Save"/>
</form>

<script type="text/javascript">
    $("#photos").kendoUpload({
        multiple: false
    });

    $("#send").on("click", function (e) {
        debugger;
        // Check that Checkbox is ticked
        var ctl = $("#control").is(":checked");
        if (ctl) {
            // if so, send the form
            $("#form").submit();
        } else {
            // otherwise show an alert
            alert("Please check 'control' before sending");
        }
    });
</script>

这里我想在“e”中访问上传文件的详细信息?

0 个答案:

没有答案
相关问题