Determine upload type

Last post 07-18-2011, 9:53 PM by Prosu. 2 replies.
Sort Posts: Previous Next
  •  07-17-2011, 11:00 PM 68579

    Determine upload type

    Hi,
     
    I need to determine if the user was using silverlight/flash/iframe when uploading their files.  Is there a way to do this?
     
    Thanks~
  •  07-17-2011, 11:27 PM 68580 in reply to 68579

    Re: Determine upload type

    Hi Prosu,
     
    Please try the following javascript code 
    1. function CuteWebUI_AjaxUploader_OnSelect(files)  
    2. {  
    3.     GetUploadType();  
    4.     return true;  
    5. }  
    6.   
    7. function GetUploadType()  
    8. {  
    9.     var uploadobj=document.getElementById('<%=Uploader1.ClientID %>');  
    10.     alert(uploadobj.internalobject.addontype);  
    11. }  
     
     
    Regards,
    Jeff 
  •  07-18-2011, 9:53 PM 68595 in reply to 68580

    Re: Determine upload type

    Hi Jeff,
     
    Thanks for your code, it works.
     
    Regards,
     
    Prosu
View as RSS news feed in XML