Welcome Guest Search | Active Topics | Sign In | Register

Create Upload Folder Based Upon New User Options
misnstt
Posted: Sunday, October 12, 2008 7:40:22 PM
Rank: Newbie
Groups: Member

Joined: 10/12/2008
Posts: 1
I have a Create New User Wizard. Step 3 of the wizard I am using eo:AJAXUploader. I have a folder on the server called "upload". When the user clicks the sumbit button of the Rad Upload I need a a folder to be created based uopn the users "UserId" and the files will upload into the newly created folder in the upload folder on the server. I am unsure how to code the page to perform this action.
I am using C#.
eo_support
Posted: Monday, October 13, 2008 4:52:13 AM
Rank: Administration
Groups: Administration

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

You would handle FileUploaded event, inside the event handler you will copy the newly uploaded file from "upload" folder to wherever you would like it to be (and create any directory if necessary).

A sample demonstrates how to use this event can be found here:

http://www.essentialobjects.com/Demo/Default.aspx?path=AJAXUploader\_i11

The sample only displays the TempFileName. Depending on whether you have set the uploader's FinalFileLocation, you may need to use FinalFileName. You can find all available properties for AJAXPostedFile object here:

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

In either case you would get the file and do the copy/move by yourself based on your application logic.

Hope this helps.

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.