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