if ( empty( $filedata ) || !is_uploaded_file( $filedata ) )
{
echo error: upload error! ;
exit( 0 );
}
老是卡在这个位置 获取不到filedata的值
window.onload = function ()
{
swfu = new swfupload(
{
// backend settings
upload_url: swfuploadvideo.php,
post_params: {phpsessid: , dopost : ,utype:shangjia},
// file upload settings
file_size_limit : 500 mb, // 2mb
file_types : *.flv,
file_types_description : 选择 flv 格式视频,
file_upload_limit : 1,
file_queue_error_handler : filequeueerror,
file_dialog_complete_handler : filedialogcomplete,
upload_progress_handler : uploadprogress,
upload_error_handler : uploaderror,
upload_success_handler : uploadsuccess,
upload_complete_handler : uploadcomplete,
button_image_url : img/smallspyglasswithtransperancy_17x18.png,
button_placeholder_id : spanbuttonplaceholder,
button_width: 250,
button_height: 18,
button_text : '选择本地视频 (视频最大为 500 mb,支持多选)',
button_text_style : '.button { font-family: helvetica, arial, sans-serif; font-size: 12pt; } .buttonsmall { font-size: 10pt; }',
button_text_top_padding: 0,
button_text_left_padding: 18,
button_window_mode: swfupload.window_mode.transparent,
button_cursor: swfupload.cursor.hand,
// flash settings
flash_url : ../images/swfupload/swfupload.swf,
custom_settings : {
upload_target : divfileprogresscontainer,
thumbnails_target:thumbnails
},
// debug settings
debug: true
});
};
------解决方案--------------------
信息太少。无法判断。
------解决方案--------------------
既然,提示“$filedata”获取不到,在往上面的代码找原因,是啥时候给$filedata赋值,慢慢向上分析,看看
------解决方案--------------------
upload1 = new swfupload({ ..... file_post_name : filedata, .......});
是不是这个属性的事,文件数据的发送名称。
这个如果不一致,的确是获得不到文件数据和信息的。
php部分 需要通过$_files[filedata]来获取数据
问题应该出在这部分了