【发布时间】:2012-05-29 03:10:00
【问题描述】:
我正在使用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?
我也想知道如何将路径“上传”指定为目标文件夹? 请帮忙..
【问题讨论】:
标签: jquery zend-framework jquery-plugins flash uploadify