
mvc项目中使用xheditor编辑器上传图片问题 30
$('#editorContainer').xheditor({tools:'full',skin:'o2007silver',showBlocktag:true,int...
$('#editorContainer').xheditor({
tools: 'full',
skin: 'o2007silver',
showBlocktag: true,
internalScript: false,
internalStyle: false,
width: 800,
height: 200,
forcePtag: true,
fullscreen: false,
sourceMode: false, //true(源代码模式),false(编辑模式)
upImgUrl:"/Home/Upload", 此为action
upImgExt: "jpg,jpeg,gif,png"
});
这样写,还需要什么
public ContentResult Upload(HttpPostedFileBase context)
我在action接收不到,context是null
已经找到问题所在了 展开
tools: 'full',
skin: 'o2007silver',
showBlocktag: true,
internalScript: false,
internalStyle: false,
width: 800,
height: 200,
forcePtag: true,
fullscreen: false,
sourceMode: false, //true(源代码模式),false(编辑模式)
upImgUrl:"/Home/Upload", 此为action
upImgExt: "jpg,jpeg,gif,png"
});
这样写,还需要什么
public ContentResult Upload(HttpPostedFileBase context)
我在action接收不到,context是null
已经找到问题所在了 展开
2个回答
展开全部
应该不是这样获取的.你的参数是获取不到的.xheditor不可能包装成服器端的httpPostfilebase参数...
你可以尝试使用Request.Files来获取.
你可以尝试使用Request.Files来获取.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询