Hey guys,
i`m using the RadAsyncUpload control for the first time and wondered about an issue that appeared.
First of all i`ve to say that the whole upload is working well even within ajaxyfied content. But there appeared one issue i wasn`t able to detect the issue.
For example there is my AsyncUpload sample code.
Please notice that there is only one input field ony my page, because it is necessary that there is only once.
In all scenarios i`ve only have one input field.
Now i`ve tried to use the upload in the following scenario:
- I`ve selected a file (file was written into the handler)
- I`ve used the submit button for a postback
The file was successfully uploaded to the handler and after a postback it was successfully stored on the server.
After that i´ve tried the following scenario:
- I`ve selected a file (file was written into the handler) (File1)
- I`ve removed the file
- I`ve now selected another file (file was written into the handler)(File2)
- I`ve used the submit button for a postback
In this scenario the behaviour is like follows. The upload doesn`t store the current selected File (File2) it is storing the old File (File1) that i`ve already removed from the server.
I`ve wondered about the issue. Because if you are validating the selected file and in case the file isn`t valid you`ll have no chance to upload a second valid file because the second file is never being uploaded
.
Are there any suggestions out there?
Thanks in advance.
Regards
Chris