Welcome Guest Search | Active Topics | Sign In | Register

change of file name Options
cei
Posted: Tuesday, July 15, 2008 11:50:57 AM
Rank: Newbie
Groups: Member

Joined: 7/12/2008
Posts: 1
While we are trying the demo version, we are using the client side event method from AJAXUploader, and we are unable to control the file name that is being uploaded.
For example the original file name that is uploaded is "Champions.jpg" and it is saved as "eouploader.30115639-7386-42b4-b1bc-a323ea46a19b.1.data". We need to be able to save the file with the name upon our convention. Further more when we try to recover the saved file name we use "uploader.aavb" which returns only this "30115639-7386-42b4-b1bc-a323ea46a19b" which is not the complete file name.
eo_support
Posted: Tuesday, July 15, 2008 12:00:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

There are two ways to access the uploaded files:

1. Access the temp file directory. This way you would see the long temp files you are seeing. The uploader also tells you the original file name:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.AJAXPostedFile.ClientFileName.html

You would then be responsible to copy/move/rename these temp files to wherever you want based on the information provided;

2. Let the AJAX Uploader to automatically copy and rename the temp files for you. To use this feature, you would also set the uploader's FinalFileLocation;

Option 2 is easier to use but less flexible. Option 1 is more flexible but requires some additional coding. For example, some people wish to save file directly to the database, in that case Option 2 would not be necessary because in order to save the file to DB, all you need is the file name and file content, both are provided in option 1, while option 2 unnecessary made an additional copy of the file.

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.