webbhotell

Hem - Webhotell - Priser - Support - Drift - Historik - Webmail - Kontakt

Ett kort exempel på hur du använder AspSmartUpload till ditt windows-webbhotell.


HTML filen: upload.htm . Lägg denna vart du vill.

<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<FORM METHOD="POST" ACTION="/cgi-bin/Sample1.asp" ENCTYPE="multipart/form-data">
   <INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><BR>
   <INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>

</BODY>
</HTML>




ASP filen: Sample1.asp . Lägg denna i cgi-bin katalogen.

<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<%
'  Variables
'  *********
   Dim mySmartUpload
   Dim intCount

'  Object creation
'  ***************
   Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

'  Upload
'  ******
   mySmartUpload.Upload

'  Save the files with their original names in a virtual path of the web server
' ****************************************************************************
   intCount = mySmartUpload.Save("c:\home\
BYT-DENNA\www\upload\")
   ' sample with a physical path
   ' intCount = mySmartUpload.Save("c:\temp\")

'  Display the number of files uploaded
'  ************************************
   Response.Write(intCount & " file(s) uploaded.")
%>
</BODY>
</HTML>


Tel. 0526-66066 - Fax. 0526-66044 - e-post. info(snabel a)webhotellet.net
Telefontider: Vardagar 10.00 - 17.00 - (fredag till 13.00) - Support till 20.00
Alla priser ex. moms och per år om ej annat anges. Sitemap