SwfUpload Fallback for clients without Flash

I am currently using SwfUpload (v2.2.0.1) on my asp.net web application with no problems.

What I would like to do is to return to normal loading when the user / client did not install flash memory. I can imagine that this could be done with something like replacing jquery or similar using a flash detection script.

I do not need to provide rollback if the user / client does not have javascript.

How do I start writing this type of bounce or does anyone have any working swfupload examples?

Thanks in advance.

+5
source share
1 answer

, - Flash, adobe Adobe Flash fooobar.com/questions/60003/...

, / div .

- (jQuery/JS):

var swfu;

if (browserHasFlash() == false) {
   $("#flashUpload").hide();
   $("#regularUpload").show();
}
else {
    //Init SWF Upload
    swfu = new SWFUpload({
        upload_url : "http://www.swfupload.org/upload.php",
        flash_url : "http://www.swfupload.org/swfupload.swf",
        file_size_limit : "20 MB"
    });
}
0

All Articles