58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
<%@ codepage = 65001%>
|
|
<% session.codepage = 65001 %>
|
|
<%Response.CharSet = "UTF-8"%>
|
|
<!--#include virtual="/content/board/nnupload/create.asp"-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
|
<head runat="server">
|
|
<title>FileDragDrop</title>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<%
|
|
'IIS에 추가할 mimetype
|
|
'.xaml application/xaml+xaml
|
|
'.xap application/x_silverlight-app
|
|
'.xbap application/x-ms-xbap
|
|
'.ashx ASP.NET HTTP Handler
|
|
'nn_basePath 하위에 Upload 폴더와 nn_uploadPath에 지정될 폴더는 인터넷게스트계정는 또는 Users 계정에 수정/쓰기 권한이 있어야 합니다.
|
|
|
|
nn_basePath = "/content/board/nnupload/" 'nn업로드가 설치된 경로
|
|
nn_paramFilter = "|.jpg|.zip|.txt|.xls" '업로드 허용 파일
|
|
nn_paramMaxFileSize = 1 '업로드 용량(MB)
|
|
nn_paramMaxFileNumber = 3 '업로드 개수
|
|
nn_width = "500px" '가로크기
|
|
nn_height = "300px" '세로크기
|
|
nn_uploadPath = "/content/board/nnupload/Upload/" '업로드할 경로
|
|
nn_key = "gt3E7pFzQLsb9+kqYldtGpLHjLZknptQjFgAcUXYCNwCgSlWXtXkPOIbmONi7swy" '키
|
|
%>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var filenames = "";
|
|
function getFileName(){ //업로드후 실제 업로드된 파일명을 배열로 반환
|
|
filenames_arr = filenames.split("|");
|
|
for(i=0;i<=filenames_arr.length-1;i++){
|
|
alert(filenames_arr[i]);
|
|
}
|
|
filenames = "";
|
|
|
|
alert("업로드 완료");
|
|
//Initialize(); //초기화
|
|
}
|
|
|
|
function AbortUploadNotFile() {
|
|
alert("업로드 할 파일 없습니다.");
|
|
}
|
|
|
|
function UploadClick() {
|
|
nnupload.content.UploadFile.StartUpload();
|
|
}
|
|
//]]>
|
|
</script>
|
|
<%
|
|
createUpload() '업로드컨트롤 생성
|
|
%>
|
|
<input type="button" value="업로드" onclick="UploadClick()" />
|
|
</form>
|
|
</body>
|
|
</html> |