엑티브 을 이용하여 업로드에서 일본쪽에서 엑티브 사용안한다고
swf오픈 소스을 이용하여 업로드구현
단 zip 파일만 업로드
기본적인것만 작성했음~
1. 오픈swf업로드 이용
2. zip 파일만 허용
http://swfupload.org/ <= swf업로드 다운받는 사이트 ~
css : swfupload 의 css부분
images : swfupload 의 버튼이미지
js : fileprogress.js : 진행바및 상태창 관련
handlers.js : 화면에 출력되거나 파일이 아니거나 하는 alert 창 메세지을 제어하는 스크립트
swfupload : 이 부분은 손을 만지지 않았다
===================
mediaupload.jsp
<html>
<head>
<title>:: test ::</title>
<!-- 업로드 스크립트 경로지정-->
<link href="./css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=strCommonPath%>/media/swfupload/swfupload.js"></script>
<script type="text/javascript" src="<%=strCommonPath%>/media/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="<%=strCommonPath%>/media/js/fileprogress.js"></script> <!-- 진행바및 상태창 관련 -->
<script type="text/javascript" src="<%=strCommonPath%>/media/js/handlers.js"></script> <!-- 이벤트 관련 -->
<script type="text/javascript">
var swfu;
window.onload = function() {
var settings = {
flash_url : "/mydocuhut/common/media/swfupload/swfupload.swf",
flash9_url : "/mydocuhut/common/media/swfupload/swfupload_fp9.swf",
upload_url: "jp/mediaup", //해당액션부분지정 <= 난 jp/mediaup 이란 서블릿명을 지정
//post_params: {"param0" : "teos"}, //파일 이외의 파라미터를 보낼때
//이부분은 기본적으로 바뀌지 않는 고정값등을 이부분에서 넣어줄수 있다.
post_params: {"upkind" : document.upFrm.upkind.value
, "idxnum" : "3"
},
file_size_limit : "5120 MB",
file_types : "*.zip", //이부분에 업로드할 확장자을 지정할 수 있다.
file_types_description : "All Files",
//file_types : "*.jpg;*.gif;*.png;*.jpeg",
//file_types_description : "jpg, gif, png, jpeg",//"All Files",
file_upload_limit :1, //최대 첨부 파일 수
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress", //body부분에서 뿌려질 id명이다.
cancelButtonId : "btnCancel"
},
debug: false, //true일경우 debug창이 열린다.
// 버튼 셋팅
button_width: "80",
button_height: "22",
button_placeholder_id: "spanButtonPlaceHolder", //플레쉬로 교체될 DOM 엘리먼트
button_image_url: "/mydocuhut/common/media/images/searchbutton.gif", //플레쉬로 보여줄 버튼 이미지
//button_text: '<span class="theFont">파일찾기..</span>',
//button_text_style: ".theFont { background-color:red; font-size:13px; }",
//button_text_left_padding: 12,
//button_text_top_padding: 3,
button_action : SWFUpload.BUTTON_ACTION.SELECT_FILES,
button_disabled : false,
button_cursor : SWFUpload.CURSOR.HAND,
button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT
// The event handler functions are defined in handlers.js
,swfupload_preload_handler : preLoad
,swfupload_load_failed_handler : loadFailed
,file_queued_handler : fileQueued //파일을 선택후 목록에 올린다.
,file_queue_error_handler : fileQueueError
,file_dialog_complete_handler : fileDialogComplete //전송 시작
,upload_start_handler : uploadStart //upload 시작?을때
,upload_progress_handler : uploadProgress
,upload_error_handler : uploadError
,upload_success_handler : uploadSuccess
,upload_complete_handler : uploadComplete
,queue_complete_handler : queueComplete // Queue plugin event
};
swfu = new SWFUpload(settings);
};
// 업로드 시작
function fileDialogComplete_mn() {
try {
/*
업로드 전에 이벤트는 이부분에 입력
널값 체크 등등
*/
//추가 파라미터나 업로드시 넘길 파라미터을 지정
swfu.addPostParam("media_title",document.upFrm.media_title.value);
swfu.startUpload(); //업로드
} catch (ex) {
swfu.debug(ex);
}
}
</script>
<!-- 업로드 스크립트 끝 -->
<body>
<form name="upFrm" action="jp/mediaup" method="post" encType="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="center" bgcolor="#E8E8E8" class="gray"><strong>제목
<font color="red"><sup>*</sup></font>
</strong></td>
<td> </td>
<td><input size="40" type="text" name="media_title" style="border : 1 solid #6b6b6b; width:270px; height:20px"></td>
</tr>
<tr>
<div id="divStatus"> - 0 Files Uploaded <!-- handlers.js 에서 컨트롤 한다. --></div>
<div class="fieldset flash" id="fsUploadProgress">
<span class="legend">업로드파일</span>
</div> //업로드 파일명 및 flash바 상태을 화면에 출력하는 부분
<span id="spanButtonPlaceHolder"></span> //찾아보기 버튼불러오기
<td height="20" align="center" background="<%=strLangPath%>/img1/bg3.gif" align="center" valign="center" colspan="3">
<input id="btnSubmit" type="button" value="업로드" onclick="fileDialogComplete_mn();" style="margin-center: 2px; font-size: 8pt; height: 20px;" />
<input id="btnCancel" type="button" value="닫기" onclick="javascript:self.close()" style="margin-center: 2px; font-size: 8pt; height: 20px;" />
</td>
</tr>
</table>
</form>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
swf오픈 소스을 이용하여 업로드구현
단 zip 파일만 업로드
기본적인것만 작성했음~
1. 오픈swf업로드 이용
2. zip 파일만 허용
http://swfupload.org/ <= swf업로드 다운받는 사이트 ~
css : swfupload 의 css부분
images : swfupload 의 버튼이미지
js : fileprogress.js : 진행바및 상태창 관련
handlers.js : 화면에 출력되거나 파일이 아니거나 하는 alert 창 메세지을 제어하는 스크립트
swfupload : 이 부분은 손을 만지지 않았다
===================
mediaupload.jsp
<html>
<head>
<title>:: test ::</title>
<!-- 업로드 스크립트 경로지정-->
<link href="./css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=strCommonPath%>/media/swfupload/swfupload.js"></script>
<script type="text/javascript" src="<%=strCommonPath%>/media/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="<%=strCommonPath%>/media/js/fileprogress.js"></script> <!-- 진행바및 상태창 관련 -->
<script type="text/javascript" src="<%=strCommonPath%>/media/js/handlers.js"></script> <!-- 이벤트 관련 -->
<script type="text/javascript">
var swfu;
window.onload = function() {
var settings = {
flash_url : "/mydocuhut/common/media/swfupload/swfupload.swf",
flash9_url : "/mydocuhut/common/media/swfupload/swfupload_fp9.swf",
upload_url: "jp/mediaup", //해당액션부분지정 <= 난 jp/mediaup 이란 서블릿명을 지정
//post_params: {"param0" : "teos"}, //파일 이외의 파라미터를 보낼때
//이부분은 기본적으로 바뀌지 않는 고정값등을 이부분에서 넣어줄수 있다.
post_params: {"upkind" : document.upFrm.upkind.value
, "idxnum" : "3"
},
file_size_limit : "5120 MB",
file_types : "*.zip", //이부분에 업로드할 확장자을 지정할 수 있다.
file_types_description : "All Files",
//file_types : "*.jpg;*.gif;*.png;*.jpeg",
//file_types_description : "jpg, gif, png, jpeg",//"All Files",
file_upload_limit :1, //최대 첨부 파일 수
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress", //body부분에서 뿌려질 id명이다.
cancelButtonId : "btnCancel"
},
debug: false, //true일경우 debug창이 열린다.
// 버튼 셋팅
button_width: "80",
button_height: "22",
button_placeholder_id: "spanButtonPlaceHolder", //플레쉬로 교체될 DOM 엘리먼트
button_image_url: "/mydocuhut/common/media/images/searchbutton.gif", //플레쉬로 보여줄 버튼 이미지
//button_text: '<span class="theFont">파일찾기..</span>',
//button_text_style: ".theFont { background-color:red; font-size:13px; }",
//button_text_left_padding: 12,
//button_text_top_padding: 3,
button_action : SWFUpload.BUTTON_ACTION.SELECT_FILES,
button_disabled : false,
button_cursor : SWFUpload.CURSOR.HAND,
button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT
// The event handler functions are defined in handlers.js
,swfupload_preload_handler : preLoad
,swfupload_load_failed_handler : loadFailed
,file_queued_handler : fileQueued //파일을 선택후 목록에 올린다.
,file_queue_error_handler : fileQueueError
,file_dialog_complete_handler : fileDialogComplete //전송 시작
,upload_start_handler : uploadStart //upload 시작?을때
,upload_progress_handler : uploadProgress
,upload_error_handler : uploadError
,upload_success_handler : uploadSuccess
,upload_complete_handler : uploadComplete
,queue_complete_handler : queueComplete // Queue plugin event
};
swfu = new SWFUpload(settings);
};
// 업로드 시작
function fileDialogComplete_mn() {
try {
/*
업로드 전에 이벤트는 이부분에 입력
널값 체크 등등
*/
//추가 파라미터나 업로드시 넘길 파라미터을 지정
swfu.addPostParam("media_title",document.upFrm.media_title.value);
swfu.startUpload(); //업로드
} catch (ex) {
swfu.debug(ex);
}
}
</script>
<!-- 업로드 스크립트 끝 -->
<body>
<form name="upFrm" action="jp/mediaup" method="post" encType="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" align="center" bgcolor="#E8E8E8" class="gray"><strong>제목
<font color="red"><sup>*</sup></font>
</strong></td>
<td> </td>
<td><input size="40" type="text" name="media_title" style="border : 1 solid #6b6b6b; width:270px; height:20px"></td>
</tr>
<tr>
<div id="divStatus"> - 0 Files Uploaded <!-- handlers.js 에서 컨트롤 한다. --></div>
<div class="fieldset flash" id="fsUploadProgress">
<span class="legend">업로드파일</span>
</div> //업로드 파일명 및 flash바 상태을 화면에 출력하는 부분
<span id="spanButtonPlaceHolder"></span> //찾아보기 버튼불러오기
<td height="20" align="center" background="<%=strLangPath%>/img1/bg3.gif" align="center" valign="center" colspan="3">
<input id="btnSubmit" type="button" value="업로드" onclick="fileDialogComplete_mn();" style="margin-center: 2px; font-size: 8pt; height: 20px;" />
<input id="btnCancel" type="button" value="닫기" onclick="javascript:self.close()" style="margin-center: 2px; font-size: 8pt; height: 20px;" />
</td>
</tr>
</table>
</form>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7530 | 10년 전 | 825 | ||
| 7529 |
파랑새1597
|
10년 전 | 1252 | |
| 7528 |
파랑새1597
|
10년 전 | 1335 | |
| 7527 |
integrity7
|
10년 전 | 1421 | |
| 7526 | 10년 전 | 2443 | ||
| 7525 |
다빈치코드777
|
10년 전 | 1126 | |
| 7524 | 10년 전 | 1595 | ||
| 7523 | 10년 전 | 982 | ||
| 7522 |
|
10년 전 | 1012 | |
| 7521 |
blackkil
|
10년 전 | 1897 | |
| 7520 | 10년 전 | 1315 | ||
| 7519 |
Gaumi
|
10년 전 | 1095 | |
| 7518 | 10년 전 | 1506 | ||
| 7517 | 10년 전 | 843 | ||
| 7516 | 10년 전 | 1312 | ||
| 7515 | 10년 전 | 1430 | ||
| 7514 |
|
10년 전 | 4500 | |
| 7513 |
멋진남자임
|
10년 전 | 1143 | |
| 7512 |
다빈치코드777
|
10년 전 | 898 | |
| 7511 |
|
10년 전 | 3418 | |
| 7510 | 10년 전 | 1383 | ||
| 7509 | 10년 전 | 1163 | ||
| 7508 | 10년 전 | 730 | ||
| 7507 |
senseme
|
10년 전 | 775 | |
| 7506 |
멋진남자임
|
10년 전 | 1668 | |
| 7505 | 10년 전 | 4049 | ||
| 7504 | 10년 전 | 2176 | ||
| 7503 | 10년 전 | 1010 | ||
| 7502 | 10년 전 | 535 | ||
| 7501 | 10년 전 | 1463 | ||
| 7500 | 10년 전 | 1509 | ||
| 7499 | 10년 전 | 3415 | ||
| 7498 | 10년 전 | 1264 | ||
| 7497 |
dethos79
|
10년 전 | 2985 | |
| 7496 | 10년 전 | 2199 | ||
| 7495 | 10년 전 | 926 | ||
| 7494 |
CHAVO
|
10년 전 | 1160 | |
| 7493 | 10년 전 | 2673 | ||
| 7492 | 10년 전 | 1306 | ||
| 7491 | 10년 전 | 1517 | ||
| 7490 | 10년 전 | 2364 | ||
| 7489 | 10년 전 | 2134 | ||
| 7488 |
toptopon
|
10년 전 | 918 | |
| 7487 |
|
10년 전 | 1061 | |
| 7486 | 10년 전 | 3378 | ||
| 7485 | 10년 전 | 1332 | ||
| 7484 | 10년 전 | 1388 | ||
| 7483 | 10년 전 | 1045 | ||
| 7482 | 10년 전 | 677 | ||
| 7481 | 10년 전 | 870 | ||
| 7480 | 10년 전 | 1252 | ||
| 7479 | 10년 전 | 2625 | ||
| 7478 | 10년 전 | 1190 | ||
| 7477 |
멋진남자임
|
10년 전 | 1537 | |
| 7476 |
zeppeto
|
10년 전 | 1151 | |
| 7475 |
200점아빠
|
10년 전 | 935 | |
| 7474 | 10년 전 | 4021 | ||
| 7473 | 10년 전 | 1009 | ||
| 7472 |
나르시스1
|
10년 전 | 1259 | |
| 7471 | 10년 전 | 889 | ||
| 7470 | 10년 전 | 1309 | ||
| 7469 |
플라이SINJI
|
10년 전 | 1020 | |
| 7468 |
|
10년 전 | 581 | |
| 7467 |
|
10년 전 | 701 | |
| 7466 | 10년 전 | 1153 | ||
| 7465 | 10년 전 | 1203 | ||
| 7464 |
|
10년 전 | 1218 | |
| 7463 | 10년 전 | 1280 | ||
| 7462 |
진짜별사탕
|
10년 전 | 881 | |
| 7461 | 10년 전 | 968 | ||
| 7460 | 10년 전 | 3764 | ||
| 7459 |
멋진남자임
|
10년 전 | 1579 | |
| 7458 |
멋진남자임
|
10년 전 | 507 | |
| 7457 | 10년 전 | 936 | ||
| 7456 | 10년 전 | 784 | ||
| 7455 | 11년 전 | 2196 | ||
| 7454 | 11년 전 | 646 | ||
| 7453 | 11년 전 | 855 | ||
| 7452 |
중국어사이트제작
|
11년 전 | 519 | |
| 7451 | 11년 전 | 927 | ||
| 7450 | 11년 전 | 649 | ||
| 7449 |
울라라라우
|
11년 전 | 967 | |
| 7448 | 11년 전 | 1642 | ||
| 7447 |
멋진남자임
|
11년 전 | 528 | |
| 7446 | 11년 전 | 575 | ||
| 7445 |
네이비칼라
|
11년 전 | 1710 | |
| 7444 |
senseme
|
11년 전 | 1427 | |
| 7443 | 11년 전 | 1355 | ||
| 7442 | 11년 전 | 748 | ||
| 7441 |
멋진남자임
|
11년 전 | 1459 | |
| 7440 | 11년 전 | 932 | ||
| 7439 |
|
11년 전 | 787 | |
| 7438 |
|
11년 전 | 957 | |
| 7437 |
basement
|
11년 전 | 1054 | |
| 7436 |
잘살아보자
|
11년 전 | 1148 | |
| 7435 | 11년 전 | 1108 | ||
| 7434 | 11년 전 | 3801 | ||
| 7433 |
|
11년 전 | 2774 | |
| 7432 |
alexkim
|
11년 전 | 880 | |
| 7431 |
이웃집초보
|
11년 전 | 1328 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기