代码之家  ›  专栏  ›  技术社区  ›  SoftwareGeek

File Upload in MVC using JQuery Multifile Upload plugin & an iframe

  •  0
  • SoftwareGeek  · 技术社区  · 15 年前

    这真的很奇怪。在本地处理我的MVC项目(使用localhost)时,我可以上载文件并将其保存到数据库中,但在服务器上部署该项目时,我会得到目录未找到异常(system.io.directory not found)。它在服务器的错误日志中列出了我的本地文件路径。

    I am trying to save the file content using Request.Files collection & its contents as a byte array.

    有什么想法吗?

    蒂亚

    1 回复  |  直到 15 年前
        1
  •  0
  •   SoftwareGeek    15 年前

    Issue Resolved! It turned out to be an incorrect url in the ACTION attribute of the FORM tag. No more HTTP 405 errors & the file is uploaded successfully.