Write a spool file upload with asp.net mvc

Original link: http://www.cnblogs.com/Barton131420/archive/2009/03/29/1424516.html

Because you want to use a rich text editor in a asp.net mvc application, you need to upload files or background pictures, so hands-on writing one. I have also wanted to be achieved by Ajax, it does seem to have some difficulty.

Refer to the following documents:

A. implement a file upload Ajax mode How hard? 

B. ASP.NET MVC file upload and download is very convenient

If you have such needs, you may wish to directly download look down.

Revisit multi-word or two.

First sentence, since the distinction between itself HttpPostedFileBase file's MIME type, so generating element is inserted into tinyMCE time will be determined according to whether image <img> element or elements <a>. This is for reference document A counter-reference.

The second sentence, I do not know what the reason is based, asp.net mvc output of JavaScriptResult give up on <pre> element, resulting script does not run automatically nested page.

 

Reproduced in: https: //www.cnblogs.com/Barton131420/archive/2009/03/29/1424516.html

Guess you like

Origin blog.csdn.net/weixin_30319097/article/details/94797307