php+uploadify文件不能上传问题,急急! 30
<head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>system...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>system version</title>
<link rel="stylesheet" type="text/css" href="css/uploadify.css"/>
<script type="text/javascript" src="jqueryjs/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="jqueryjs/jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#file_upload").uploadify({
'swf' : 'jqueryjs/upload/uploadify.swf',
'uploader' : 'uploadify.php',
'cancelImg' : 'jqueryjs/upload/uploadify-cancel.png',
'fileSizeLimit' : '100MB',
'fileTypeExts' : '*.img; *.IMG;',
'method' : 'post',
'multi' : false,
'preventCaching' : true,
'queueID' : 'some_file_queue',
'queueSizeLimit' : 1,
'requeueErrors' : false,
'removeCompleted' : true,
'uploadLimit' : 1,
});
});
</script>
</head>
<body >
<div id=some_file_queue>
<input id="file_upload" name="file_upload" type="file" multiple="false">
</div>
<a href="javascript:$('#file_upload').uploadify('upload','*')">上传</a>
</body>
后台处理程序uploadify.php:
<?php
$url=$_FILES['file_upload']['name'];
$aa=$_FILES['file_upload']['tmp_name'];
if(($url=="")||($aa==""))
echo "error";
else{
if(move_uploaded_file($aa, "/mnt/".$url))
{
$ret = ext_sys_manage("load_ac_ap_version",$url,1);
}
}
?>
其中是ext_sys_manage是扩展函数,大家不用关心。uploadify.php中是html页面中file_upload表单名称。
我想问一下,为什么文件不能上传,哪有错误,请大侠指点? 展开
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>system version</title>
<link rel="stylesheet" type="text/css" href="css/uploadify.css"/>
<script type="text/javascript" src="jqueryjs/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="jqueryjs/jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#file_upload").uploadify({
'swf' : 'jqueryjs/upload/uploadify.swf',
'uploader' : 'uploadify.php',
'cancelImg' : 'jqueryjs/upload/uploadify-cancel.png',
'fileSizeLimit' : '100MB',
'fileTypeExts' : '*.img; *.IMG;',
'method' : 'post',
'multi' : false,
'preventCaching' : true,
'queueID' : 'some_file_queue',
'queueSizeLimit' : 1,
'requeueErrors' : false,
'removeCompleted' : true,
'uploadLimit' : 1,
});
});
</script>
</head>
<body >
<div id=some_file_queue>
<input id="file_upload" name="file_upload" type="file" multiple="false">
</div>
<a href="javascript:$('#file_upload').uploadify('upload','*')">上传</a>
</body>
后台处理程序uploadify.php:
<?php
$url=$_FILES['file_upload']['name'];
$aa=$_FILES['file_upload']['tmp_name'];
if(($url=="")||($aa==""))
echo "error";
else{
if(move_uploaded_file($aa, "/mnt/".$url))
{
$ret = ext_sys_manage("load_ac_ap_version",$url,1);
}
}
?>
其中是ext_sys_manage是扩展函数,大家不用关心。uploadify.php中是html页面中file_upload表单名称。
我想问一下,为什么文件不能上传,哪有错误,请大侠指点? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询