因为在做一个文件传输系统,所以用了swfupload,用的也是php100的版本。虽然自己有较大改动吧,但之前测试也都成功的。今天整个系统做的差不多,发现swfupload出问题了。上传后报500错误,经测试,好像是session没有传递成功。但是我不知道怎么改,文件夹的权限已经全开,不知道怎么回事。测试环境是xp下,ie6.下面附上代码
上传页面:变化不大,页面我还没怎么设计。
<?php include('conn/conn.php');
include('globle.php')
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="text/html"; charset="gb2312">
<head>
<title> 文件管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="swfupload/swfupload.js"></script>
<script type="text/javascript" src="js/swfupload.queue.js"></script>
<script type="text/javascript" src="js/fileprogress.js"></script>
<script type="text/javascript" src="js/handlers.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
var swfu;
window.onload = function() {
var settings = {
flash_url : "swfupload/swfupload.swf",
upload_url: "prossess.php",
post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"},
file_size_limit : "1000 MB",
file_types : "*.*",
file_types_description : "All Files",
file_upload_limit : 10, //配置上传个数
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: false,
// Button settings
button_image_url: "../image/TestImageNoText_65x29.png",
button_width: "65",
button_height: "29",