Feb 05, 2010, 2:11 AM
[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>