Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

form with upload

Posted 02 Mar 2004 20:52:23
1
has voted
02 Mar 2004 20:52:23 Fred Smith posted:
Could someone please take a peak at my page and tell me if they see something that really sticks out that I'm doing wrong. I'm pretty new to ASP.

www.bucketrader.biz/place_ad.asp

Here is the script:

<%


Set Upload = Server.CreateObject("Persits.Upload.1"


Count = Upload.Save("C:\Program
Files\Ensim\SiteData\webppliance\conf\domains\bucket\Inetpub\wwwroot\picture_uploads"


'Response.Write "I am currently in this "&Server.MapPath("."&" directory"


%>
<HTML>
<BODY BGCOLOR="#FFFFFF">
<CENTER>

<% If Err <> 0 Then %>

<FONT SIZE=3 FACE="Arial" COLOR=#0020A0>
<H3>The following error occured while uploading:</h3>
</FONT>

<FONT SIZE=3 FACE="Arial" COLOR=#FF2020>
<h2>"<% = Err.Description %>"</h2>
</FONT>

<FONT SIZE=2 FACE="Arial" COLOR="#0020A0">
Please <A HREF="asp_upload/demo1.asp">try again</A>.
</FONT>

<% Else %>
<FONT SIZE=3 FACE="Arial" COLOR=#0020A0>
<h2>Success! <% = Count %> file(s) have been uploaded.</h2>
</FONT>

<FONT SIZE=3 FACE="Arial" COLOR=#0020A0>
<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>
<TH BGCOLOR="#FFFF00">Uploaded File</TH><TH BGCOLOR="#FFFF00">Size</TH><TH BGCOLOR="#FFFF00">Original Size</TH><TR>
<% For Each File in Upload.Files %>
<% If File.ImageType = "GIF" or File.ImageType = "JPG" or File.ImageType = "PNG" Then %>
<TD ALIGN=CENTER>
<IMG SRC="/uploaddir/<% = File.FileName%>"><BR><B><% = File.OriginalPath%></B><BR>
(<% = File.ImageWidth %> x <% = File.ImageHeight %> pixels)

</TD>
<% Else %>
<TD><B><% = File.OriginalPath %></B></TD>
<% End If %>
<TD ALIGN=RIGHT VALIGN="TOP"><% =File.Size %> bytes</TD>
<TD ALIGN=RIGHT VALIGN="TOP"><% =File.OriginalSize %> bytes</TD><TR>
<% Next %>
</TABLE>
</FONT>
<P>
<FONT SIZE=2 FACE="Arial" COLOR=#0020A0>
Click <A HREF="asp_upload/demo1.asp">here</A> to upload more files.
</FONT>
<% End If %>

<HR>
<FONT SIZE=2 FACE="Arial" COLOR=#0020A0>
<A HREF="www.persits.com/aspupload.exe">Download</A> your trial copy of AspUpload.
</FONT>


</CENTER>
</BODY>
</HTML>


Thanks


Edited by - freddyboy on 03 Mar 2004 03:08:33

Replies

Replied 03 Mar 2004 02:29:41
03 Mar 2004 02:29:41 Phil Shevlin replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Could someone please take a peak at my page and tell me if they see something that really sticks out that I'm doing wrong. I'm pretty new to <b>php</b>.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Yeah! Your coding .asp not .php!<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 03 Mar 2004 03:09:44
03 Mar 2004 03:09:44 Fred Smith replied:
Nice one Broham <img src=../images/dmxzone/forum/icon_smile_shock.gif border=0 align=middle>

I guess a newbie can't get a break
Replied 05 Mar 2004 06:26:09
05 Mar 2004 06:26:09 Fred Smith replied:
Can someone please help I really could use some words of advice.

Thanks

Reply to this topic