Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: How to Upload the file from an ASP page using AspSmartUpload


Message #1 by Fakrudeen Ali <fakru1975@y...> on Tue, 21 Aug 2001 21:31:13 -0700 (PDT)
Hi,

 i am using the following codes to upload the file

from asp page.

 the file gets uploaded but there is no such file in

my web server.

 could u help me out in this regard.



i am using 2 asp pages, they r given below.





--------------------Files.asp--------------------------------------------

<%@ Language=VBScript %>

<HTML>

<BODY>



<form name=frmFiles method=POST action="Upload.asp"

ENCTYPE="multipart/form-data">

<input type="file" name="updFile"><br>

<input type=submit value=Upload>



</form>



</BODY>

</HTML>

---------------------------------------------------------------------------



---------Upload.asp--------------------------------------------------------



<%@ Language=VBScript %>

<HTML>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual

Studio 6.0">

</HEAD>

<BODY>



<%

Dim fUpload

Dim intCount



Dim strServerURL  'Local Web Server Name including

http:// protocol

Dim strTargetURL  'Directory where we will upload our

file to



strServerURL = "http://" +

Request.ServerVariables("SERVER_NAME")

strTargetURL = strServerURL &"/JobRequest/Upload"





Set

fUpload=Server.CreateObject("aspSmartUpload.SmartUpload")

fUpload.Upload 

fUpload.Save("strTargetURL")

Response.Write "Uploaded"



%>



</BODY>

</HTML>

-------------------------------------------------------------------------





Message #2 by "Gerhard Wentink" <data@w...> on Wed, 22 Aug 2001 08:40:40 +0200
Sorry, this item is very specific to this component. I suggest you read the

manual. There could be a lot of things you do wrong.

Regards,



Gerhard Wentink

----- Original Message -----

From: "Fakrudeen Ali" <fakru1975@y...>

To: "ASP components" <asp_components@p...>

Sent: Wednesday, August 22, 2001 6:31 AM

Subject: [asp_components] How to Upload the file from an ASP page using

AspSmartUpload





> Hi,

>  i am using the following codes to upload the file

> from asp page.

>  the file gets uploaded but there is no such file in

> my web server.

>  could u help me out in this regard.

>

> i am using 2 asp pages, they r given below.

>

>

> --------------------Files.asp--------------------------------------------

> <%@ Language=VBScript %>

> <HTML>

> <BODY>

>

> <form name=frmFiles method=POST action="Upload.asp"

> ENCTYPE="multipart/form-data">

> <input type="file" name="updFile"><br>

> <input type=submit value=Upload>

>

> </form>

>

> </BODY>

> </HTML>

> --------------------------------------------------------------------------

-

>

> ---------Upload.asp-------------------------------------------------------

-

>

> <%@ Language=VBScript %>

> <HTML>

> <HEAD>

> <META NAME="GENERATOR" Content="Microsoft Visual

> Studio 6.0">

> </HEAD>

> <BODY>

>

> <%

> Dim fUpload

> Dim intCount

>

> Dim strServerURL  'Local Web Server Name including

> http:// protocol

> Dim strTargetURL  'Directory where we will upload our

> file to

>

> strServerURL = "http://" +

> Request.ServerVariables("SERVER_NAME")

> strTargetURL = strServerURL &"/JobRequest/Upload"

>

>

> Set

> fUpload=Server.CreateObject("aspSmartUpload.SmartUpload")

> fUpload.Upload

> fUpload.Save("strTargetURL")

> Response.Write "Uploaded"

>

> %>

>

> </BODY>

> </HTML>

> -------------------------------------------------------------------------

Message #3 by "Nikos Pournaras" <pournara@t...> on Wed, 22 Aug 2001 09:11:12 +0300
Try this for your target path

strTargetURL = strServerURL & "/JobRequest/Upload/"



----- Original Message -----

From: "Fakrudeen Ali" <fakru1975@y...>

To: "ASP components" <asp_components@p...>

Sent: Wednesday, August 22, 2001 7:31 AM

Subject: [asp_components] How to Upload the file from an ASP page using

AspSmartUpload





> Hi,

>  i am using the following codes to upload the file

> from asp page.

>  the file gets uploaded but there is no such file in

> my web server.

>  could u help me out in this regard.

>

> i am using 2 asp pages, they r given below.

>

>

> --------------------Files.asp--------------------------------------------

> <%@ Language=VBScript %>

> <HTML>

> <BODY>

>

> <form name=frmFiles method=POST action="Upload.asp"

> ENCTYPE="multipart/form-data">

> <input type="file" name="updFile"><br>

> <input type=submit value=Upload>

>

> </form>

>

> </BODY>

> </HTML>

> --------------------------------------------------------------------------

-

>

> ---------Upload.asp-------------------------------------------------------

-

>

> <%@ Language=VBScript %>

> <HTML>

> <HEAD>

> <META NAME="GENERATOR" Content="Microsoft Visual

> Studio 6.0">

> </HEAD>

> <BODY>

>

> <%

> Dim fUpload

> Dim intCount

>

> Dim strServerURL  'Local Web Server Name including

> http:// protocol

> Dim strTargetURL  'Directory where we will upload our

> file to

>

> strServerURL = "http://" +

> Request.ServerVariables("SERVER_NAME")

> strTargetURL = strServerURL &"/JobRequest/Upload"

>

>

> Set

> fUpload=Server.CreateObject("aspSmartUpload.SmartUpload")

> fUpload.Upload

> fUpload.Save("strTargetURL")

> Response.Write "Uploaded"

>

> %>

>

> </BODY>

> </HTML>

> -------------------------------------------------------------------------

>

>

>

> ---

> * Fast, Full-Featured Microsoft® Excel Web Reports & Charts!

> A breakthrough in high performance Web application development,

SoftArtisans

> ExcelWriter 1.1 supports native Excel charting, image insertion, and

> advanced functions & formatting. One click generates presentation-quality

> Excel spreadsheets-and ExcelWriter performs over 100 times faster than the

> Excel Object. Several editions, including ExcelWriterFREE, are available.

> http://www.softartisans.com/softartisans/excelwriter.html>




$subst('Email.Unsub')

>




  Return to Index