开发者

ASP.NET passing HTML input files via post from classic ASP

I'm in the process of migrating code from a classic ASP site to an ASP.NET site. One problem that I'm running into is an <input type="file" name="upload"/> form field.

    <form
      id="classicASPform"
      method="post"
      EncType="Multipart/Form-Data"
      action="http://domain2/formReciver.aspx">
        <input type="file" id="upload" name="upload" /><br/>
        <input type="submit" id="save" class="button" value="Save" />
        <input type="reset" id="reset" class开发者_JS百科="button" value="Reset" />
    </form>

When I try to access the data on the ASP.NET page I'm getting 0 for Request.Files.Count and can only get the string values for the posted file name from Request.Form("upload") or Request.Item("upload")

So how do you access the file data from a cross domain file post in classic ASP to ASP.NET?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜