{"id":180,"date":"2015-12-09T11:05:34","date_gmt":"2015-12-09T02:05:34","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=180"},"modified":"2015-12-09T11:05:34","modified_gmt":"2015-12-09T02:05:34","slug":"asyn-filetransfer-ajaxfileupload-js","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2015\/12\/09\/asyn-filetransfer-ajaxfileupload-js\/","title":{"rendered":"\ube44\ub3d9\uae30 \ud30c\uc77c\uc804\uc1a1    ajaxfileupload.js"},"content":{"rendered":"<p><a style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" data-topotext=\"[{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;writingDirection&quot;:1},&quot;font&quot;:{&quot;name&quot;:&quot;AppleSDGothicNeo-Regular&quot;},&quot;color&quot;:{&quot;red&quot;:0,&quot;green&quot;:0,&quot;blue&quot;:0,&quot;alpha&quot;:1},&quot;uniqueId&quot;:40},&quot;codePoints&quot;:[48708,46041,44592]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;writingDirection&quot;:1},&quot;color&quot;:{&quot;red&quot;:0,&quot;green&quot;:0,&quot;blue&quot;:0,&quot;alpha&quot;:1},&quot;uniqueId&quot;:4},&quot;codePoints&quot;:[32]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;writingDirection&quot;:1},&quot;font&quot;:{&quot;name&quot;:&quot;AppleSDGothicNeo-Regular&quot;},&quot;color&quot;:{&quot;red&quot;:0,&quot;green&quot;:0,&quot;blue&quot;:0,&quot;alpha&quot;:1},&quot;uniqueId&quot;:40},&quot;codePoints&quot;:[54028,51068,51204,49569]},{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;paragraphStyle&quot;:{&quot;writingDirection&quot;:1},&quot;color&quot;:{&quot;red&quot;:0,&quot;green&quot;:0,&quot;blue&quot;:0,&quot;alpha&quot;:1},&quot;uniqueId&quot;:4},&quot;codePoints&quot;:[32,32,32,32,97,106,97,120,102,105,108,101,117,112,108,111,97,100,46,106,115,10,60,115,99,114,105,112,116,32,116,121,112,101,61,34,116,101,120,116,47,106,97,118,97,115,99,114,105,112,116,34,32,115,114,99,61,34,47,114,101,115,111,117,114,99,101,115,47,106,115,47,97,106,97,120,102,105,108,101,117,112,108,111,97,100,46,106,115,34,62,60,47,115,99,114,105,112,116,62,10,102,117,110,99,116,105,111,110,32,97,106,97,120,70,105,108,101,85,112,108,111,97,100,40,41,123,10,32,32,32,32,106,81,117,101,114,121,46,97,106,97,120,70,105,108,101,85,112,108,111,97,100,40,123,10,32,32,32,32,32,32,32,32,117,114,108,58,34,47,117,115,101,114,76,105,115,116,85,112,108,111,97,100,34,44,32,10,32,32,32,32,32,32,32,32,115,101,99,117,114,101,117,114,105,58,102,97,108,115,101,44,32,10,32,32,32,32,32,32,32,32,102,105,108,101,69,108,101,109,101,110,116,73,100,58,34,102,105,108,101,68,97,116,97,34,44,32,10,32,32,32,32,32,32,32,32,100,97,116,97,84,121,112,101,58,34,106,115,111,110,34,44,32,10,32,32,32,32,32,32,32,32,100,97,116,97,58,123,100,101,112,97,114,116,109,101,110,116,73,100,58,100,101,112,97,114,116,109,101,110,116,73,100,125,44,32,10,32,32,32,32,32,32,32,32,115,117,99,99,101,115,115,58,102,117,110,99,116,105,111,110,40,100,97,116,97,44,32,115,116,97,116,117,115,41,123,10,32,32,32,32,32,32,32,32,32,32,32,32,47,47,115,117,99,99,101,115,115,32,102,117,110,99,116,105,111,110,10,32,32,32,32,32,32,32,32,125,44,32,10,32,32,32,32,32,32,32,32,101,114,114,111,114,58,102,117,110,99,116,105,111,110,40,100,97,116,97,44,32,115,116,97,116,117,115,44,32,101,41,123,10,32,32,32,32,32,32,32,32,32,32,32,32,47,47,102,97,105,108,32,102,117,110,99,116,105,111,110,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,125,41,59,10,125,10]}]\">\u200b<\/a><\/p>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">\ube44\ub3d9\uae30 \ud30c\uc77c\uc804\uc1a1 <span class=\"Apple-converted-space\">\u00a0<\/span> <span class=\"Apple-converted-space\">\u00a0<\/span>ajaxfileupload.js<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;\/resources\/js\/ajaxfileupload.js&#8221;&gt;&lt;\/script&gt;<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">function ajaxFileUpload(){<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">jQuery.ajaxFileUpload({<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">url:&#8221;\/userListUpload&#8221;,<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">secureuri:false,<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">fileElementId:&#8221;fileData&#8221;,<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">dataType:&#8221;json&#8221;,<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">data:{departmentId:departmentId},<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">success:function(data, status){<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">\/\/success function<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">},<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">error:function(data, status, e){<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">\/\/fail function<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">}<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">});<\/div>\n<div style=\"font: 300 15px\/18px SFNSText, 'Helvetica Neue', sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">}<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u200b \ube44\ub3d9\uae30 \ud30c\uc77c\uc804\uc1a1 \u00a0 \u00a0ajaxfileupload.js &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;\/resources\/js\/ajaxfileupload.js&#8221;&gt;&lt;\/script&gt; function ajaxFileUpload(){ jQuery.ajaxFileUpload({ url:&#8221;\/userListUpload&#8221;, secureuri:false, fileElementId:&#8221;fileData&#8221;, dataType:&#8221;json&#8221;, data:{departmentId:departmentId}, success:function(data, status){ \/\/success function }, error:function(data, status, e){ \/\/fail function } }); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-about-linux"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":1,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/180\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}