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

get renamed filename after fileexists fires

1 Answer 46 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
vinamra
Top achievements
Rank 1
vinamra asked on 02 Nov 2008, 08:03 PM
hi i am using radcontrols ajax 2008 Q2
i want to know a v. simple question

i am using radupload inside radgrid
now when i insert new row or update it and then sets upload file it uploads fine
and if fileexits then it renames it and then saves it

now i want to know that how to access that renamed filename in RadGrid1_UpdateCommand or RadGrid1_InsertCommand
if i use objRadUploadScreenShot.UploadedFiles[0].GetName() it gives the original file name not the renamed file name.

plz help me in this simple question.
urgent
thanks

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 03 Nov 2008, 09:01 AM
Hi Vinamra,

You could just add a page-wide string variable, which will get assigned the new name of the file. You should use this variable later on.

Regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
vinamra
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or