Welcome Guest Search | Active Topics | Sign In | Register

fileupload Options
ritesh
Posted: Monday, February 7, 2011 4:29:00 AM
Rank: Newbie
Groups: Member

Joined: 2/7/2011
Posts: 5
I have a question about EO Ajax uploaded?

When I browser for a file and click on the upload button can I rename the file name? And than store the file in the location?
ritesh
Posted: Monday, February 7, 2011 4:29:36 AM
Rank: Newbie
Groups: Member

Joined: 2/7/2011
Posts: 5
I have a question about EO Ajax uploaded?

When I browser for a file and click on the upload button can I rename the file name? And than store the file in the location?
Phil Cameron
Posted: Monday, February 7, 2011 5:08:31 AM
Rank: Newbie
Groups: Member

Joined: 2/7/2011
Posts: 1
You can do so in the server side code.

IO.File.Move("UPLOADEDFILENAME", "NEWFILENAME")

UPLOADEDFILENAME would be either the FinalFileName or TempFileName depending on when you access it.

NEWFILENAME would be your new file name.

Dont forget the Server.MapPath() to get relative to the website root


eo_support
Posted: Monday, February 7, 2011 7:18:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
To Phil:

Thanks for answer the question.

To ritesh:

Here are some additional information:

http://doc.essentialobjects.com/library/1/ajaxuploader/ajaxuploader_behavior.aspx

Please do not post the same question multiple times in the forum. You have posted this question three times. Posting the same question multiple times will NOT expedite your question. Rather it is considered abuse and we may ban your account if you do so again in the future.

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.