SWFUpload Upload failure Solving ideas

Source: Internet
Author: User
SWFUpload Upload Failure Solver
if (Empty ($Filedata) | |!is_uploaded_file ($FILEDATA))
{
echo "Error:upload error!";
Exit (0);
}
Always stuck in this position to get the value of 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: "MB",//2MB
File_Types: "*.flv",
File_types_description: "Select FLV format Video",
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: ' Select Local video (maximum video, multi-select) ',
Button_text_style: '. button {Font-family:helvetica, Arial, Sans-serif; font-size:12pt;}. buttonsmall {font-size:10p T }',
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
});
};

------Solution--------------------
Too little information. cannot be judged.
------Solution--------------------
Since, the hint "$Filedata" can not get, in the above code to find the reason, is when to assign value to $filedata, slowly upward analysis, see
------Solution--------------------
Upload1 = new SWFUpload ({.... file_post_name: "Filedata", ...});

is not a matter of this attribute, the sending name of the file data.
If this is not the case, it does not have access to the file data and information.

PHP section needs to get data by $_files["Filedata")
The problem should be in this part.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.