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

OnFileUploaded Trigger

1 Answer 83 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Zach
Top achievements
Rank 1
Zach asked on 19 Sep 2016, 01:05 PM

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>

1 Answer, 1 is accepted

Sort by
0
Zach
Top achievements
Rank 1
answered on 19 Sep 2016, 06:46 PM
Nevermind. Created my own solution by using the OnFileUploaded event to fire an async thread which scans for the file for 30 seconds. 
Tags
AsyncUpload
Asked by
Zach
Top achievements
Rank 1
Answers by
Zach
Top achievements
Rank 1
Share this question
or