Welcome Guest Search | Active Topics | Sign In | Register

accessing uploaded files Options
amillyard
Posted: Monday, February 18, 2008 12:34:38 PM
Rank: Member
Groups: Member

Joined: 11/18/2007
Posts: 18
Have got the uploader working fine -- ie. select and upload to tmp directory fine.

but, the files are not as sent originally.

what am I supposed to do once these files are uploaded? (i.e. get the files to appears as they originally were -- do the files just need renaming back?)

thank you in advance for your time and effort with this enquiry.





<eo:AJAXUploader ID="AJAXUploader1" runat="server"
Font-Names="Arial Unicode MS" Font-Size="10pt" ForceSSL="True"
ProgressBarSkin="Windows_Vista" Rows="3"
TempFileLocation="D:\Inetpub\AI-BOT Staging Server\Upload" Width="250px">
<LayoutTemplate>
<table border="0" cellPadding="2" cellSpacing="0" width="250px">
<tr>
<td>
<asp:PlaceHolder ID="InputPlaceHolder" runat="server">Input Box Place Holder
</asp:PlaceHolder>
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="UploadButton" runat="server" Text="Upload" />
</td>
</tr>
<tr>
<td>
<eo:ProgressBar ID="ProgressBar" runat="server" ControlSkinID="Windows_XP" />
</td>
</tr>
<tr>
<td>
<asp:PlaceHolder ID="ProgressTextPlaceHolder" runat="server">Progress Text Place
Holder</asp:PlaceHolder>
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</td>
<tr>
<td>
<asp:PlaceHolder ID="PostedFilesPlaceHolder" runat="server">Posted Files Place
Holder</asp:PlaceHolder>
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="DeleteButton" runat="server" Text="Delete Selected Files" />
</td>
</tr>
</tr>
</table>
</LayoutTemplate>
</eo:AJAXUploader>
eo_support
Posted: Monday, February 18, 2008 12:38:19 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,096
amillyard
Posted: Monday, February 18, 2008 1:23:28 PM
Rank: Member
Groups: Member

Joined: 11/18/2007
Posts: 18
OK, thanks.

I have cut and pasted the following script -- server-side.

Getting a compliler error on: lblFiles. (unknown)

is this the final destination string?



private void AJAXUploader1_FileUploaded(object sender, System.EventArgs e)
{
//Get all the posted files
EO.Web.AJAXPostedFile[] files = AJAXUploader1.PostedFiles;

//Delete all posted files
string s = string.Empty;
foreach (EO.Web.AJAXPostedFile file in files)
{
s += System.IO.Path.GetFileName(file.TempFileName);
s += "<br />";
}

lblFiles.Text = s;
}


amillyard
Posted: Monday, February 18, 2008 1:24:41 PM
Rank: Member
Groups: Member

Joined: 11/18/2007
Posts: 18
cannot seem to find the destination folder variable.
eo_support
Posted: Monday, February 18, 2008 1:38:24 PM
Rank: Administration
Groups: Administration

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

Please read the first post again. It is your responsibility to copy the files. The FinalFileLocation will be there in the next version. It doesn't exist in the current version.

The sample code only shows you the basic idea of how to do it. So obvious if you just copy and paste it without understanding it, you would get yourself into trouble. The sample code is as simple as it can be we believe the previous posts already explained everything in detail, so we are not sure how we can explain it better again.

Thanks
eo_support
Posted: Monday, February 18, 2008 2:29:39 PM
Rank: Administration
Groups: Administration

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

We've sent a private message to you. Please click the "inbox" link on the top of the forum to view the private message.

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.