Upload file

Hi all , How to know the physical path of the file Uploaded When using (Upload Controller)
For example : use this path to import excel into DB
please help

This is not allowed by the browser since it’s security issue

ok @enchev thanks
how to do something after upload file
examble : i upload file and want after file upload show notification

@Ahmed You can add method in razor.cs which get invoked after completion of file upload.

 protected void OnComplete(UploadCompleteEventArgs res) 

and res.RawResponse will be your response from controller. Also you can use

protected void OnProgress(UploadProgressArgs args, string name) 

to track progress of file upload.

1 Like

thanks @KaurParminder :relaxed: