check bug

This commit is contained in:
yubaolee 2017-03-07 09:11:57 +08:00
parent 3f5eece334
commit ed37dae1a0
3 changed files with 4 additions and 4 deletions

View File

@ -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))
{

View File

@ -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,

View File

@ -77,7 +77,7 @@
<sessionState mode="InProc" timeout="60" />
</system.web>
<system.webServer>
<modules>
<modules runAllManagedModulesForAllRequests="true" >
<remove name="FormsAuthenticationModule" />
</modules>
<handlers>