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

TargetFolder not working RadAsyncUpload

4 Answers 238 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 23 Sep 2015, 06:01 AM

Running 2015.2.826.45

This used to work, but we recently changed environments and I am not sure where to check for problems.

<telerik:RadAsyncUpload runat="server" Width="300" SkinID="defaultUpload" ID="uImportFile" OnFileUploaded="fileUploaded" AllowedFileExtensions=".xls,.xlsx"  OverwriteExistingFiles="True" AutoAddFileInputs="False" MaxFileInputsCount="1"                    TargetFolder="~/UploadedFiles" OnClientFileUploadFailed="uploadFailed">
</telerik:RadAsyncUpload>

As soon as the user selects the file to be uploaded, a temp file is created based on the name of the upload in App_Data/RadUploadTemp.  But then a postback happens, the file is removed from RadUPloadTemp, but it not moved into the UploadedFiles folder. ​This happens on a production server as well as locally.  I have set permissions on the folder to full control.  Tried Chrome, IE, FireFox and got the same results.  The OnClientUploadFailed event is not firing.  The OnFileUploaded even is firing.  What am I missing?

Thanks,

Randy

4 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 25 Sep 2015, 03:23 PM
Hello Randy,

I tested your RadAsyncUpload configuration with version 2015.2.826.45, but I was not able to reproduce the behavior you observed and the file was successfully uploaded to the specified TargetFolder. I am attaching a sample website to this reply. Could you please run it and check whether the same behavior is reproduced at your end?

Regards,
Ivan Danchev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Randy
Top achievements
Rank 1
answered on 25 Sep 2015, 05:16 PM
Thank you for the reply.  Your sample works fine.  So obviously there is something happening in my solution which is causing this component to not work.  Do you have any suggestions for things to check?
0
Randy
Top achievements
Rank 1
answered on 28 Sep 2015, 02:51 AM
I found the problem.  The control was set to allow both XLS and XLSX files.  On the OnFileUploaded server event, we were checking to see if it was an XLSX file and if not setting IsValid to false.  It was also supposed to pop-up a RadAlert, but that was not working, so it wasn't obvious that we were cancelling the upload.
0
Ivan Danchev
Telerik team
answered on 28 Sep 2015, 06:00 PM
Hello Randy,

Thank you for getting back to us. I am glad the issue was not in the control itself and it is working as expected.

Regards,
Ivan Danchev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Upload (Obsolete)
Asked by
Randy
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Randy
Top achievements
Rank 1
Share this question
or