|
Rank: Member Groups: Member
Joined: 1/9/2009 Posts: 15
|
I use AJAX Upload and i need save de file with a diferent name than client selected from your PC.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will need to:
1. Clear FinalFileLocation property; 2. Handle FileUploaded event and inside that event you will get the name of the temporary file. You can then move that temporary file to wherever you want and rename the file when you move it;
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/9/2009 Posts: 15
|
yes, but i have the "autoupload" on true, you can send me an example?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, It has nothing to do with AutoUpload. You may want to read this topic to see how uploader works: http://doc.essentialobjects.com/library/1/ajaxuploader/ajaxuploader_behavior.aspxThe above topic also includes sample code that you may find useful. The key is that you will get a temp file name and once you have the temp file name, the rest (move file, rename name, delete file, etc) is totally up to you and no longer has anything to do with the uploader. Thanks!
|
|