Rank: Member Groups: Member
Joined: 6/8/2007 Posts: 13
|
Bit of a newbe when it comes to Ajax and file uploads using ASP. But if include this control onto my website, how to I actually save the file to the server, as i cannot find any documentation on this site about it putting temp files in a directory.
Do you have small code sample i can look at, which would demonstrate what needs to be done to save the uploaded file(s) to the server.
Regards
Craig
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Craig, AJAXUploader automatically saves the file into a temp path that you specified by TempFileLocation: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.AJAXUploader.TempFileLocation.htmlOnce you set this property, you will then be able use PostedFiles property to get a list of posted file, each of them represented by an AJAXPostedFile object. You will then use this property: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.AJAXPostedFile.TempFileName.htmlTo get the temp file name. Thanks
|