Can I access the filename after I click open, but before I postback?

1 Answer 77 Views
AsyncUpload
Dana Cobb
Top achievements
Rank 1
Iron
Dana Cobb asked on 08 Jun 2022, 10:44 PM

I would like to be able to check for a file of the same name existing on the server 'before' i postback.

Is there an event i can access right after the file has been uploaded to the temp directory?

 

Thanks,

Dana

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 13 Jun 2022, 04:58 PM

Hi Dana,

You can make the check inside a custom handler as explained here:

Another option would be on file select to make a custom request to the server and if the file exists, to cancel the upload.

You can leverage the Manual Upload functionality as well and upon selecting, play the upload only if the files are valid:

Regards,
Peter Milchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AsyncUpload
Asked by
Dana Cobb
Top achievements
Rank 1
Iron
Answers by
Peter Milchev
Telerik team
Share this question
or