OnFileUploaded Trigger

2 posts, 0 answers
  1. Zach
    Zach avatar
    2 posts
    Member since:
    Nov 2013

    Posted 19 Sep Link to this post

    Hello!

    I'm wondering if there's a way to make the OnFileUploaded or OnClientFileUploaded events fire when the file is placed in the target folder and not on the temp upload. 

    Would I need to make a custom http handler for this? I don't have a temporary directory set and I have also set DisableChunkUpload to false.

    My usage scenario is that I'm trying to fire a SQL job on the upload event which is scanning the target location of the uploader for new files. It isn't working because the event happens during the temp upload so the SQL job is fired before the file is actually in the target upload.

    This is what my AsyncUpload declaration looks like:

    1.<telerik:RadAsyncUpload ID="RadUpload1" runat="server" RenderMode="Classic" Skin="Bootstrap" AllowedFileExtensions=".xls,.xlsx"
    2.    UploadedFilesRendering="BelowFileInput" OnFileUploaded="IssueUploader_OnFileUpload" PostbackTriggers="btnTest"
    3.    DisableChunkUpload="true" EnablePermissionsCheck="false">
    4.</telerik:RadAsyncUpload>

  2. Zach
    Zach avatar
    2 posts
    Member since:
    Nov 2013

    Posted 19 Sep in reply to Zach Link to this post

    Nevermind. Created my own solution by using the OnFileUploaded event to fire an async thread which scans for the file for 30 seconds. 
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top