MVC 上传文件

1. 上传大文件 http://www.cnblogs.com/lucslg/archive/2011/06/26/2090885.html

2. 在asp.net mvc中使用Uploadify上传文件   http://www.cnblogs.com/dingji/archive/2010/07/07/1772909.html

3. JQuery 上传插件Uploadify 使用详解 http://www.cnblogs.com/dingji/archive/2010/07/07/1772909.html

4. Uploadify 的官方网站  http://www.uploadify.com/

5. 探索Asp.net mvc 的文件上传(由浅入深) http://kb.cnblogs.com/page/77482/

 

6. mvc 3 例子 : 注意使用 new { enctype = "multipart/form-data" }

 

@using (Html.BeginForm("Create", "MerchandisePhoto", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>MerchandisePhoto</legend>

                <div class="editor-label">
            @Html.LabelFor(model => model.Photo)
        </div>
        <div class="editor-field">
            <input type="file" name="file" />
        </div>

                <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>

 

posted @ 2011-06-30 15:24  Ken-Cai  阅读(674)  评论(0编辑  收藏  举报