473,796 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspSmartUpload. SmartUpload doesnt save my file?

Hi group,

I am trying to build a page that allows uploading
My ISP only supports Smartupload
I am testing on a small hubbed local network, with PWS
Any help is appreciated.
---------------------
'rqstupl.asp contents

<HTML>
<BODY BGCOLOR="white" >
<FORM METHOD="POST" ENCTYPE="multip art/form-data" ACTION="txtupl. asp">
<INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><br>
<INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>
</BODY>
</HTML>
-------------
input in form = usblog.txt
-------------
'txtupl.asp contents
<%
response.write "txtupl<br> "
Dim myUpload 'declare the component
Dim intCount ' count the number of uploaded files
Dim File 'declare the file to upload
dim item, fic, i
intCount=0 'initialize the counter

' error managment
'On Error Resume Next

'component creation
Set myUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")

'limit the file size to 50 Kb
myUpload.MaxFil eSize = 50000

' limit the file extensions to pictures files
myUpload.allowe dFilesList="txt ,gif,jpg"

'Select files on the user computer
myUpload.Upload

Response.Write( "Number of files =" & myUpload.Files. count&"<BR>")

' checking all the files
For each file In myUpload.Files
Response.Write( "Name =" & File.FileName&" <BR>")
Response.Write( "Size =" & File.Size&"<BR> ")
' presence test
If not File.IsMissing then
' ---------------here sits the trouble
'
i = Server.MapPath( "database/msgs/") & file.FileName
response.write (i) & "<br>"
file.SaveAs( i )
' -----------------------------
'
If Err.Number=0 then
direction="save d"
Else
direction="erro r: " & Err.description
End if

end if
Next

Set myUpload=nothin g

' error managment

' redirect to the result display
Response.write direction
%>
------------------
'response output screen

txtupl
Number of files =1
Name =usblog.txt
Size =89
D:\Inetpub\wwwr oot\database\ms gsusblog.txt
saved

-----------
I have been trying to modify the "save" line to any construction to no aval.
Everything works, I can access all the properties of "file."
I have no error responses or script aborts.
Asp handling works, vbscript and jscript works
The destination folder is writable, I have another asp testing page that creates and modifies a file on that folder.

--------- The one thing that doesnt work: there is no file created! --------------

I am using Win98SE, PWS installed, testing application on a second pc, locally hubbed.
What am I missing?

Thanks in advance

--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 19 '05 #1
2 13846
Hi group,

I am trying to build a page that allows uploading
My ISP only supports Smartupload
I am testing on a small hubbed local network, with PWS
Any help is appreciated.
---------------------
'rqstupl.asp contents

<!-- to prevent execution in newsgroup !
<HTML>
<BODY BGCOLOR="white" >
<FORM METHOD="POST" ENCTYPE="multip art/form-data" ACTION="txtupl. asp">
<INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><br>
<INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>
</BODY>
</HTML>
-------------
input in form = usblog.txt
-------------
'txtupl.asp contents
<%
response.write "txtupl<br> "
Dim myUpload 'declare the component
Dim intCount ' count the number of uploaded files
Dim File 'declare the file to upload
dim item, fic, i
intCount=0 'initialize the counter

' error managment
'On Error Resume Next

'component creation
Set myUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")

'limit the file size to 50 Kb
myUpload.MaxFil eSize = 50000

' limit the file extensions to pictures files
myUpload.allowe dFilesList="txt ,gif,jpg"

'Select files on the user computer
myUpload.Upload

Response.Write( "Number of files =" & myUpload.Files. count&"<BR>")

' checking all the files
For each file In myUpload.Files
Response.Write( "Name =" & File.FileName&" <BR>")
Response.Write( "Size =" & File.Size&"<BR> ")
' presence test
If not File.IsMissing then
' ---------------here sits the trouble
'
i = Server.MapPath( "database/msgs/") & file.FileName
response.write (i) & "<br>"
file.SaveAs( i )
' -----------------------------
'
If Err.Number=0 then
direction="save d"
Else
direction="erro r: " & Err.description
End if

end if
Next

Set myUpload=nothin g

' error managment

' redirect to the result display
Response.write direction
%>
------------------
'response output screen

txtupl
Number of files =1
Name =usblog.txt
Size =89
D:\Inetpub\wwwr oot\database\ms gsusblog.txt
saved

-----------
I have been trying to modify the "save" line to any construction to no aval.
Everything works, I can access all the properties of "file."
I have no error responses or script aborts.
Asp handling works, vbscript and jscript works
The destination folder is writable, I have another asp testing page that creates and modifies a file on that folder.

--------- The one thing that doesnt work: there is no file created! --------------

I am using Win98SE, PWS installed, testing application on a second pc, locally hubbed.
What am I missing?

Thanks in advance
-->
--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 19 '05 #2
Hi group,

Finally got posted the message ok, not used to post <<html>> contents
So here we go:

I am trying to build a page that allows uploading
My ISP only supports Smartupload
I am testing on a small hubbed local network, with PWS
Any help is appreciated.
---------------------
'rqstupl.asp contents
'had to use "<<" to prevent page showing as webpage

<<HTML>
<<BODY BGCOLOR="white" >
<<FORM METHOD="POST" ENCTYPE="multip art/form-data" ACTION="txtupl. asp">
<<INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><br>
<<INPUT TYPE="SUBMIT" VALUE="Upload">
<</FORM>
<</BODY>
<</HTML>
-------------
input in form = usblog.txt
-------------
'txtupl.asp contents
<%
response.write "txtupl<br> "
Dim myUpload 'declare the component
Dim intCount ' count the number of uploaded files
Dim File 'declare the file to upload
dim item, fic, i
intCount=0 'initialize the counter

' error managment
'On Error Resume Next

'component creation
Set myUpload = Server.CreateOb ject("aspSmartU pload.SmartUplo ad")

'limit the file size to 50 Kb
myUpload.MaxFil eSize = 50000

' limit the file extensions to pictures files
myUpload.allowe dFilesList="txt ,gif,jpg"

'Select files on the user computer
myUpload.Upload

Response.Write( "Number of files =" & myUpload.Files. count&"<BR>")

' checking all the files
For each file In myUpload.Files
Response.Write( "Name =" & File.FileName&" <BR>")
Response.Write( "Size =" & File.Size&"<BR> ")
' presence test
If not File.IsMissing then
' ---------------here sits the trouble
'
i = Server.MapPath( "database/msgs/") & file.FileName
response.write (i) & "<br>"
file.SaveAs( i )
' -----------------------------
'
If Err.Number=0 then
direction="save d"
Else
direction="erro r: " & Err.description
End if

end if
Next

Set myUpload=nothin g

' error managment

' redirect to the result display
Response.write direction
%>
------------------
'response output screen

txtupl
Number of files =1
Name =usblog.txt
Size =89
D:\Inetpub\wwwr oot\database\ms gsusblog.txt
saved

-----------
I have been trying to modify the "save" line to any construction to no aval.
Everything works, I can access all the properties of "file."
I have no error responses or script aborts.
Asp handling works, vbscript and jscript works
The destination folder is writable, I have another asp testing page that creates and modifies a file on that folder.

--------- The one thing that doesnt work: there is no file created! --------------

I am using Win98SE, PWS installed, testing application on a second pc, locally hubbed.
What am I missing?

Thanks in advance
--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6942
by: cam | last post by:
Hi: How can I rename the file being uploaded using ASPSmartUpload? I can set the other parameters ok, just looking for the syntax to rename the file. E.G. User uploading GIF file. I'd like to rename the file 'test.gif' ********
2
2069
by: Vilmar Brazão de Oliveira | last post by:
HI, Does anybody have a smartupload sample? thanks, -- Sem mais, ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web
0
2417
by: Jake | last post by:
Hi All, > Hi experts, > > I am trying to build a page that allows file uploading from a browser > My ISP where the page will be located, only supports Smartupload > I am testing on a small hubbed local network, with PWS > Any help is appreciated. > --------------------- > 'rqstupl.asp contents
2
6112
by: SayMyName | last post by:
Due to my browser being danishm the error message will not mean much t most of you. It is an "Unspecified problem" with "Provide (0x80004005)" POST Data: error '80020009' The error only arrives with some apperently random files bein uploaded. Please Help
2
2586
by: SayMyName | last post by:
Due to my browser being danishm the error message will not mean much to most of you. It is an "Unspecified problem" with "Provider (0x80004005)" POST Data: error ''80020009'' The error only arrives with some apperently random files being uploaded. Please Help The codes being used for the upload is: Response.Write "<form method=""post"" action=""./item/upload.asp"""
4
6262
by: david | last post by:
I am getting the following error: Error Type: ADODB.Field (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. When this code snippet is executed.
1
2160
by: pook | last post by:
Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string <% set up = Server.CreateObject("aspsmartupload.smartupload") up.upload '---------temp data %>
2
6024
by: MitchellEr | last post by:
Hi, I've seen various forum posts that mention the ability to set ASPSmaryUpload's Codepage property in order to handle UTF-8 and other character encodings. Example: http://www.thescripts.com/forum/thread102044.html I'd like to set this property so that foreign characters in form submissions are posted correctly especially for text fields. When I try doing it, I receive the following message: Microsoft VBScript runtime (0x800A01B6)...
4
5276
by: =?Utf-8?B?VG9kZA==?= | last post by:
I am using Windows XP and have registered the aspsmartupload dll and moved it into the system32 directory. I get the following error Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80070005) General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x918 Thread 0xa90 DBC 0x96768d4 Jet'.
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.