Telerik radasync upload File processing using Ajax

1.4k Views Asked by At

I am using radasyncupload on my asp.net page. After uploading the files, I need to store them to database as byte array. So, after uploading, on a button click, through Ajax call, I want to store the files currently in the temporary folder to database. But I found that the file names in the temporary folder is not the same as that I uploaded. So, how can I upload these files using Ajax call if the file names do not match?

1

There are 1 best solutions below

2
M4N On

After the files are uploaded, you can get their name, using this code:

if (radAsyncUpload.UploadedFiles.Count >= 1)
{
    foreach (UploadedFile file in radAsyncUpload.UploadedFiles)
    {
        // gets the name/path of the uploaded file on the client computer,
        // e.g. "c:\temp\image.gif"
        var origName = file.FileName;