Rank: Newbie Groups: Member
Joined: 1/5/2011 Posts: 2
|
Hi eo_support
I have referred to AJAXUploader -File List. When uplaod the same file twice(abc.txt), the files will be abc.txt and abc_2.txt.
My question is that if I want to keep the original file name by MsgBox of confirmation, any attributes setting for AJAXUploader? Or How can I modify the sample code?
Please give me some suggestions, thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will have to stop using the AJAXUploadedFileList control and handle the AJAXUploader's FileUploaded event directly. When you handle that event, you can check AJAXUploader's PostedFiles property to get a list of AJAXPostedFiles objects. From that object you can get the TempFileName and ClientFileName. You can then do whatever you want based on the two file names. The temp file contains the file content.
Thanks!
|