mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
check bug
This commit is contained in:
parent
3f5eece334
commit
ed37dae1a0
@ -12,7 +12,7 @@ namespace OpenAuth.Mvc.Areas.FlowManage.Controllers
|
||||
{
|
||||
|
||||
[HttpPost]
|
||||
public string Upload(HttpPostedFileBase Filedata)
|
||||
public string Add(HttpPostedFileBase Filedata)
|
||||
{
|
||||
if (Filedata != null && Filedata.ContentLength > 0 && Filedata.ContentLength < 10485760)
|
||||
{
|
||||
@ -34,7 +34,7 @@ namespace OpenAuth.Mvc.Areas.FlowManage.Controllers
|
||||
|
||||
}
|
||||
|
||||
public string UploadFile(string fileName, byte[] fileBuffers, string folder)
|
||||
private string UploadFile(string fileName, byte[] fileBuffers, string folder)
|
||||
{
|
||||
if (string.IsNullOrEmpty(folder))
|
||||
{
|
||||
|
@ -1371,7 +1371,7 @@ $.fn.frmPreview = function (options)
|
||||
function fuploadify(control_field,btnName) {
|
||||
$("#" + control_field).uploadify({
|
||||
method: 'post',
|
||||
uploader: '/FlowManage/File/Upload',
|
||||
uploader: '/FlowManage/File/Add',
|
||||
swf: '/Content/scripts/plugins/uploadify/uploadify.swf',
|
||||
buttonText: btnName,
|
||||
height: 30,
|
||||
|
@ -77,7 +77,7 @@
|
||||
<sessionState mode="InProc" timeout="60" />
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<modules>
|
||||
<modules runAllManagedModulesForAllRequests="true" >
|
||||
<remove name="FormsAuthenticationModule" />
|
||||
</modules>
|
||||
<handlers>
|
||||
|
Loading…
Reference in New Issue
Block a user