client-side name of uploaded file

Last post 04-05-2010, 11:34 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  04-05-2010, 6:12 PM 59883

    client-side name of uploaded file

    I have an uploader inside an ajax callback panel.  I am trying to figure out how to capture the name (and path) of an uploaded file via javascript.  I tried using a hidden field within the callback panel that gets set via ClientSideAfterExecute, but it doesn't seem to work.  Do you have any suggestions or examples?  Thank you.
  •  04-05-2010, 11:34 PM 59888 in reply to 59883

    Re: client-side name of uploaded file

    Hi,
     
    You can get the name of the file, but not the path.
     
    Please try this sample code :
     
    function CuteWebUI_AjaxUploader_OnSelect(files)
    {
        alert(files[0].FileName);
    }
     
    function CuteWebUI_AjaxUploader_OnQueueUI(files)
    {
        //files[0].FileName
    }
     
    Regards,
    Terry
View as RSS news feed in XML