This is a migrated thread and some comments may be shown as answers.

Upload issue - add & remove items

4 Answers 182 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Jul 2010, 08:04 AM
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.

<telerik:RadAsyncUpload ID="rauImage"  
                            runat="server"  
                            AllowedFileExtensions=".jpg"  
                            MaxFileInputsCount="1"  
                            MaxFileSize="5242880"  
                            InitialFileInputsCount="1" 
                            OverwriteExistingFiles="true" 
                            TemporaryFileExpiration="05:00:00"
</telerik:RadAsyncUpload> 
 
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









4 Answers, 1 is accepted

Sort by
0
vladan strigo
Top achievements
Rank 1
answered on 05 Jul 2010, 10:45 AM
I have this same issue.

Any ideas?
0
Genady Sergeev
Telerik team
answered on 05 Jul 2010, 04:56 PM
Hello guys,

This is a problem in RadAsyncUpload which we have resolved for the latest release. The fix will go official together with the upcoming Q2 release (scheduled for the middle of July).

All the best,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
aliguldur
Top achievements
Rank 1
answered on 27 Jul 2010, 07:56 AM

I have this same issue too.

0
Yana
Telerik team
answered on 27 Jul 2010, 08:27 AM
Hi aliguldur,

We had some issues with RadAsyncUpload in the official release, could you please download the latest internal build and give it a try?

Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
Chris
Top achievements
Rank 1
Answers by
vladan strigo
Top achievements
Rank 1
Genady Sergeev
Telerik team
aliguldur
Top achievements
Rank 1
Yana
Telerik team
Share this question
or