!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?""?
創(chuàng)新互聯(lián)是一家專業(yè)提供弓長(zhǎng)嶺企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站制作、成都網(wǎng)站建設(shè)、html5、小程序制作等業(yè)務(wù)。10年已為弓長(zhǎng)嶺眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站制作公司優(yōu)惠進(jìn)行中。
html?xmlns=""?
meta?http-equiv='Content-Type'?content='text/html;?charset=utf-8'?/
titleFile?upload?/title?
link?rel="Stylesheet"?href="js/Plug-in/jquery.uploadify/uploadify.css"?/?
script?type="text/javascript"?src="js/Plug-in/jquery.uploadify/jquery-1.3.2.min.js"/script?
script?type="text/javascript"?src="js/Plug-in/jquery.uploadify/swfobject.js"/script?
script?type="text/javascript"?src="js/Plug-in/jquery.uploadify/jquery.uploadify.v2.1.0.min.js"/script?
script?type="text/javascript"?
$(document).ready(function()?{?
$("#uploadify").uploadify({?
'uploader':?'js/Plug-in/jquery.uploadify/uploadify.swf',?
'script':?'uploadify.php',?
'cancelImg':?'js/Plug-in/jquery.uploadify/cancel.png',?
'folder':?'uploadfile',?
'queueID':?'fileQueue',?
'auto':?false,?
'multi':?true,?
});?
});?
/script?
/head?
body?
MAX:?20M
/BR
input?type="file"?name="uploadify"?id="uploadify"?/?
a?href="javascript:$('#uploadify').uploadifyUpload()"Upload/a|?a?href="javascript:$('#uploadify').uploadifyClearQueue()"cancel/a?
div?id="fileQueue"/div?
/body?
/html
后臺(tái)?uploadify.php
?php
/*
Uploadify?v2.1.0
Release?Date:?August?24,?2009
Copyright?(c)?2009?Ronnie?Garcia,?Travis?Nickels
Permission?is?hereby?granted,?free?of?charge,?to?any?person?obtaining?a?copy
of?this?software?and?associated?documentation?files?(the?"Software"),?to?deal
in?the?Software?without?restriction,?including?without?limitation?the?rights
to?use,?copy,?modify,?merge,?publish,?distribute,?sublicense,?and/or?sell
copies?of?the?Software,?and?to?permit?persons?to?whom?the?Software?is
furnished?to?do?so,?subject?to?the?following?conditions:
The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
all?copies?or?substantial?portions?of?the?Software.
THE?SOFTWARE?IS?PROVIDED?"AS?IS",?WITHOUT?WARRANTY?OF?ANY?KIND,?EXPRESS?OR
IMPLIED,?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY,
FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM,?DAMAGES?OR?OTHER
LIABILITY,?WHETHER?IN?AN?ACTION?OF?CONTRACT,?TORT?OR?OTHERWISE,?ARISING?FROM,
OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
THE?SOFTWARE.
*/
if?(!empty($_FILES))?{
$tempFile?=?$_FILES['Filedata']['tmp_name'];
$targetPath?=?$_SERVER['DOCUMENT_ROOT']?.?$_REQUEST['folder']?.?'/';
$targetFile?=??str_replace('//','/',$targetPath)?.?$_FILES['Filedata']['name'];
$targetFile?=??iconv("utf-8","gbk",$targetFile);
move_uploaded_file($tempFile,$targetFile);
echo?"1";
}
?
eclipes上傳圖片的插件是Uploadify插件,Uploadify是來(lái)自國(guó)外的一款優(yōu)秀jQuery插件,主要功能是批量上傳文件,此插件在項(xiàng)目中已被廣泛之用。
1、uploadify
它是針對(duì)jQuery的免費(fèi)文件上傳插件,可以輕松將單個(gè)或多個(gè)文件上傳到網(wǎng)站上,可控制并發(fā)上傳的文件數(shù),通過(guò)接口參數(shù)和CSS控制外觀。Web服務(wù)器需支持flash和后端開(kāi)發(fā)語(yǔ)言。
2、FancyUpload
它是一個(gè)由CSS和XHTML編寫樣式的Ajax文件上傳工具,安裝簡(jiǎn)便,服務(wù)器獨(dú)立,由MooTools模塊驅(qū)動(dòng),可以在任何現(xiàn)代瀏覽器上使用。
3、Aurigma Upload Suite(Image Uploader)
這是一個(gè)不限大小,不限格式的文件/圖片批量上傳工具,是收費(fèi)控件。它支持云端存儲(chǔ)和客戶端文件處理,支持?jǐn)帱c(diǎn)續(xù)傳,穩(wěn)定可靠。從8.0.8開(kāi)始,Image Uploader將名稱改為"Aurigma Upload Suite"。
網(wǎng)站名稱:jquery圖片上傳插件,jquery圖片編輯插件
文章分享:http://jinyejixie.com/article12/dssoigc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開(kāi)發(fā)、小程序開(kāi)發(fā)、網(wǎng)站排名、App設(shè)計(jì)、靜態(tài)網(wǎng)站、網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)