我正在使用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?
另外我想知道如何将路径“上传”指定为目标文件夹?请帮忙..