Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader, how to keep the original file name Options
Hank Chang
Posted: Monday, August 29, 2011 11:20:29 PM
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.
eo_support
Posted: Tuesday, August 30, 2011 11:17:27 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.