If a user does not have flash installed what is the best way to detect this with swfupload and alert the user to install flash?
is this something built into swfupload or do i have to do this on my own?
thanks.
If a user does not have flash installed what is the best way to detect this with swfupload and alert the user to install flash?
is this something built into swfupload or do i have to do this on my own?
thanks.
May 17, 2010 - 10:27am
In the latest beta we have moved to using swfobject to detect Flash
After instantiating SWFUpload you can do one of the following (or you can see the swfobject website and documentation if you'd rather use swfobject directly (it is included in the swfupload.js file).
1) Use the swfupload_load_failed_handler event
1a) Check the 'support' property: if (!swfu.support.loading) { alert('you need flash'); }
2) After instantiating a SWFUpload object you don't have to wait for the swfupoad_load_failed event (although it is recommended) instead you can immediately check the 'support' property (see 1a).
Note: in v2.5.0 there are 2 SWF files. One is for Flash Player 9 and the other for Flash Player 10. SWFUpload will automatically load the correct one based on the detected Flash Player version. Flash Player 10 is required for image resizing support.
May 18, 2010 - 2:46pm
what if i am on version 2.2.0 can this be done?
May 18, 2010 - 3:02pm
Feel free to download and include swfobject. Use it to detect the flash version before you ever instantiate SWFUpload.