How to fire Upload in a form submit and pass HttpPostedFileBase to server-side?

2 posts, 0 answers
  1. John
    John avatar
    15 posts
    Member since:
    Jul 2011

    Posted 15 Dec 2011 Link to this post

    How can I implement firing upload while clicking submit as below code?

    @using (Ajax.BeginForm("Upload", null, null, null }))
    {
    <input id="Uploaded" name="Uploaded" type="file" />
    <input type="submit" class="buttonPro k-upload-selected" value="Add"  />
    }

    for server-side, code is :
    [HttpPost]
    public Boolean Upload(HttpPostedFileBase Uploaded)
    {
      ...
    }
  2. John
    John avatar
    15 posts
    Member since:
    Jul 2011

    Posted 19 Dec 2011 Link to this post

    no any response on this?
Back to Top