Rank: Advanced Member Groups: Member
Joined: 6/4/2008 Posts: 38
|
When I upload a file I want the uploader overwrite the same name existing file, instead naming with the same name and MyFile_1, MyFile_2, etc.
It's there a way to do this ???
And other question, can I get the name of the files listed in the uploader. I want to know the names of the files the user upload.
Thanks a lot.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, The uploader won't overwrite the files for you. If you do need to override, you will need to clear FinalFileLocation and copy the files from TempFileLocation by yourself. You will need to use PostedFiles to access all the files: http://www.essentialobjects.com/ViewDoc.aspx?t=AJAXUploader%2fAJAXUploader_behavior.htmlPostedFiles contains AJAXPostedFile object, which has all the file names you need. Thanks
|