Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 17237a4
Showing
765 changed files
with
103,043 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Thumbs.db | ||
*.obj | ||
*.exe | ||
*.pdb | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.sln.docstates | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.cache | ||
*.ilk | ||
*.log | ||
*.txt | ||
[Bb]in | ||
[Dd]ebug*/ | ||
*.lib | ||
*.sbr | ||
obj/ | ||
[Rr]elease*/ | ||
_ReSharper*/ | ||
[Tt]est[Rr]esult* | ||
*.vssscc | ||
$tf*/ | ||
*.orig | ||
|
||
.vs | ||
.vs/ | ||
.vs/config/applicationhost.config | ||
UploadFile | ||
packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jQueryUploadify.WebForm.Sample", "jQueryUploadify.Sample\jQueryUploadify.WebForm.Sample.csproj", "{17A75662-0607-44FC-9460-651C39C7A683}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{17A75662-0607-44FC-9460-651C39C7A683}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{17A75662-0607-44FC-9460-651C39C7A683}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{17A75662-0607-44FC-9460-651C39C7A683}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{17A75662-0607-44FC-9460-651C39C7A683}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%@ WebHandler Language="C#" CodeBehind="CheckExistHandler.ashx.cs" Class="jQueryUploadify.WebForm.Sample.CheckExistHandler" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace jQueryUploadify.WebForm.Sample | ||
{ | ||
/// <summary> | ||
/// UploadHandler 的摘要说明 | ||
/// </summary> | ||
public class CheckExistHandler : IHttpHandler | ||
{ | ||
public void ProcessRequest(HttpContext context) | ||
{ | ||
context.Response.ContentType = "text/plain"; | ||
context.Response.Charset = "utf-8"; | ||
|
||
string fileName = context.Request["filename"]; | ||
if(string.IsNullOrEmpty(fileName)) | ||
{ | ||
context.Response.Write("0"); | ||
} | ||
|
||
string filePath = | ||
HttpContext.Current.Server.MapPath(@context.Request["folder"]) + "\\"+ fileName; | ||
//uploadPath += "UploadFile"; | ||
if (File.Exists(filePath)) | ||
{ | ||
//下面这句代码缺少的话,上传成功后上传队列的显示不会自动消失 | ||
context.Response.Write("1"); | ||
} | ||
else | ||
{ | ||
context.Response.Write("1"); | ||
} | ||
} | ||
|
||
public bool IsReusable | ||
{ | ||
get | ||
{ | ||
return false; | ||
} | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace jQueryUploadify.WebForm.Sample | ||
{ | ||
public partial class Demo3__2__1 : System.Web.UI.MasterPage | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<%@ Page Title="" Language="C#" MasterPageFile="~/Demo3.2.1.Master" AutoEventWireup="true" CodeBehind="onCancel.aspx.cs" Inherits="jQueryUploadify.WebForm.Sample.Demo3._2._1.Events.onCancel" %> | ||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> | ||
|
||
</asp:Content> | ||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> | ||
<div class="page-content"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<!-- BEGIN GENERAL PORTLET--> | ||
<div class="portlet light"> | ||
<div class="portlet-title"> | ||
<div class="caption"> | ||
<i class="fa fa-gift"></i>onCancel 示例 | ||
</div> | ||
</div> | ||
<div class="portlet-body"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<input type="file" name="uploadify" id="uploadify" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<div class="portlet box blue-hoki"> | ||
<div class="portlet-title"> | ||
<div class="caption"> | ||
<i class="fa fa-gift"></i>说明 | ||
</div> | ||
<div class="tools"> | ||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a> | ||
</div> | ||
</div> | ||
<div class="portlet-body"> | ||
<ol> | ||
<li>当auto设置为false时,添加到文件队列中的文件可以点击“X”进行取消上传任务,取消上传任务时会触发onCancel事件。</li> | ||
</ol> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</asp:Content> | ||
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server"> | ||
<script type="text/javascript" src="../../scripts/uploadify/jquery.uploadify.js"></script> | ||
<script type="text/javascript"> | ||
$(function () { | ||
$("#uploadify").uploadify({ | ||
'auto': false, | ||
'swf': '../../scripts/uploadify/uploadify.swf', | ||
'uploader': '../../UploadHandler.ashx', | ||
'onCancel': function (file) { | ||
alert('The file ' + file.name + ' was cancelled.'); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</asp:Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace jQueryUploadify.WebForm.Sample.Demo3._2._1.Events | ||
{ | ||
public partial class onCancel : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
jQueryUploadify.Sample/Demo3.2.1/Events/onCancel.aspx.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<%@ Page Title="" Language="C#" MasterPageFile="~/Demo3.2.1.Master" AutoEventWireup="true" CodeBehind="onClearQueue.aspx.cs" Inherits="jQueryUploadify.WebForm.Sample.Demo3._2._1.Events.onClearQueue" %> | ||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> | ||
|
||
</asp:Content> | ||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> | ||
<div class="page-content"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<!-- BEGIN GENERAL PORTLET--> | ||
<div class="portlet light"> | ||
<div class="portlet-title"> | ||
<div class="caption"> | ||
<i class="fa fa-gift"></i>onClearQueue 示例 | ||
</div> | ||
</div> | ||
<div class="portlet-body"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<input type="file" name="uploadify" id="uploadify" /> | ||
<a href="javascript:$('#uploadify').uploadify('cancel','*');">Clear Queue</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-4"> | ||
<div class="portlet box blue-hoki"> | ||
<div class="portlet-title"> | ||
<div class="caption"> | ||
<i class="fa fa-gift"></i>说明 | ||
</div> | ||
<div class="tools"> | ||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a> | ||
</div> | ||
</div> | ||
<div class="portlet-body"> | ||
<ol> | ||
<li>当auto设置为false时,执行cancel事件时会触发onClearQueue事件,参数为取消的文件的个数</li> | ||
</ol> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</asp:Content> | ||
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server"> | ||
<script type="text/javascript" src="../../scripts/uploadify/jquery.uploadify.js"></script> | ||
<script type="text/javascript"> | ||
$(function () { | ||
$("#uploadify").uploadify({ | ||
'auto': false, | ||
'swf': '../../scripts/uploadify/uploadify.swf', | ||
'uploader': '../../UploadHandler.ashx', | ||
'onClearQueue': function (queueItemCount) { | ||
alert(queueItemCount + ' file(s) were removed from the queue'); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</asp:Content> |
17 changes: 17 additions & 0 deletions
17
jQueryUploadify.Sample/Demo3.2.1/Events/onClearQueue.aspx.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace jQueryUploadify.WebForm.Sample.Demo3._2._1.Events | ||
{ | ||
public partial class onClearQueue : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
jQueryUploadify.Sample/Demo3.2.1/Events/onClearQueue.aspx.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.