简体   繁体   English

将文件保存在目录文件夹中

[英]Save the file On directory folder

I have problem with save the browse file to local directory folder. 我将浏览文件保存到本地目录文件夹时遇到问题。 I am usimg extJs as client side and C# .net as server side. 我将extJs用作客户端,将C#.net用作服务器端。 I browse file from extjs and pass only file name(not entire path) it to ashx handler.and in ashx handler i want to save this file into directory folder. 我从extjs浏览文件,仅将文件名(而不是整个路径)传递给ashx处理程序。在ashx处理程序中,我想将此文件保存到目录文件夹中。

How can i do this? 我怎样才能做到这一点?

File upload in JavaScipt: https://developer.mozilla.org/en-US/docs/FileGuide/FileUpDown 使用JavaScipt上传文件: https : //developer.mozilla.org/en-US/docs/FileGuide/FileUpDown

note: if you want to do this in IE then use a jQuery plugin sice IE does not support formdata and makes it hard to write the JavaScript code yourself. 注意:如果要在IE中执行此操作,请使用jQuery插件,因为IE IE不支持formdata,因此很难自己编写JavaScript代码。

Handle upload in C# http://support.microsoft.com/kb/323246 使用C#处理上传http://support.microsoft.com/kb/323246

Sorry for not posting code but there is just a little bit too much involved to do it right. 对不起,您没有发布代码,但是这样做有点过多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM