Welcome Guest Search | Active Topics | Sign In | Register

How save files with diferent name Options
Tomas Urbina
Posted: Tuesday, June 16, 2009 12:17:36 PM
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.
eo_support
Posted: Tuesday, June 16, 2009 12:24:16 PM
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!
Tomas Urbina
Posted: Tuesday, June 16, 2009 12:39:25 PM
Rank: Member
Groups: Member

Joined: 1/9/2009
Posts: 15
yes, but i have the "autoupload" on true, you can send me an example?
eo_support
Posted: Tuesday, June 16, 2009 12:46:59 PM
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.aspx

The 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!


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.