2
我正在使用uploadify插件上傳圖片。主代碼是這樣的:zend中的jquery uploadify插件
<script type="text/javascript" src="/js/uploadify-v3.1/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="/js/uploadify-v3.1/uploadify.css">
<script type="text/javascript" src="/js/uploadify-v3.1/jquery.uploadify-3.1.min.js"></script>
<script type="text/javascript">
$(function() {
$('#file_upload').uploadify({
'auto' : false,
'buttonCursor' : 'arrow',
'checkExisting' : '/js/uploadify-v3.1/check-exists.php',
'fileObjName' : 'the_files',
'fileTypeExts' : '*.gif; *.jpg; *.png',
'method' : 'post',
'queueID' : 'some_file_queue',
'swf' : '/js/uploadify-v3.1/uploadify.swf',
//'uploader' : '/js/uploadify-v3.1/uploadify.php',
'uploader' : 'UploadifyController.php',
'onUploadError' : function(file, errorCode, errorMsg, errorString) {
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
} ,
'onUploadSuccess' : function(file, data, response) {
alert('The file was saved to: ' + data);
}
// Your options here
});
});
</script>
我已經把這些代碼放在/ views/scripts /中。
如何將uploadify.php指定爲UploadifyController.php?或者我如何在zend中使用uploadify?
另外我想知道如何指定路徑「上傳」作爲目標文件夾? 請幫忙..