TargetFolder not working RadAsyncUpload

Thread is closed for posting
5 posts, 0 answers
  1. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 23 Sep 2015 Link to this post

    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

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 25 Sep 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 25 Sep 2015 in reply to Ivan Danchev Link to this post

    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?
  5. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 27 Sep 2015 in reply to Randy Link to this post

    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.
  6. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 28 Sep 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017