[CLOSED] FileUploadField not firing FileSelected event

  1. #1

    [CLOSED] FileUploadField not firing FileSelected event



    I have an ext:FileUploadField and when a file is originally selected, the FileSelected DirectEvent fires. However, if, during the same session, the user chooses the same file that had already been uploaded once, the event does not fire again. Is there a way to detect that the file was selected again?

    To illustrate the issue: The user selects a file, the FileSelected fires and I add the file to a data store so that it appears on a grid. Then, the user clicks the delete image on that grid to remove that file from the grid. Then he realizes that he was wrong and that he wants the file in the grid and tries to upload it again. I cannot detect this scenario with the FileSelected event.

    Is there another event that is firing in this scenario or is there something that I should be doing to reset the FileUploadField so that I can detect the file being selected again?

    Thanks.
    -Steve

    <ext:FileUploadField runat="server" ID="fileAttachment" ButtonOnly="true">
    <DirectEvents>
        <FileSelected OnEvent="fileAttachmentFileSelected" />
    </DirectEvents>
    </ext:FileUploadField>


  2. #2

    RE: [CLOSED] FileUploadField not firing FileSelected event

    Hi,

    I think you have to reset FileUploadField after file uploading
    FileUploadField1.Reset();
  3. #3

    RE: [CLOSED] FileUploadField not firing FileSelected event



    That is awesome. I knew I was missing something simple.

    Thanks.
    -Steve

Similar Threads

  1. Replies: 3
    Last Post: May 15, 2012, 8:48 AM
  2. [CLOSED] BeforeClientInit event not firing
    By jchau in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 04, 2011, 7:07 PM
  3. [CLOSED] Button event firing twice?
    By geodan in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 18, 2010, 7:03 PM
  4. [CLOSED] KeyDown Event Not Firing
    By JonG in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 04, 2010, 1:57 PM
  5. [CLOSED] Ajax Event Not Firing with AjaxMethodProxyIDMode set
    By CMA in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 27, 2009, 9:02 AM

Posting Permissions