aspSmartupload problem

J

Jake

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


-------------
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 management
'On Error Resume Next

'component creation
Set myUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

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

' limit the file extensions to pictures files
myUpload.allowedFilesList="txt"

'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
'
response.write (Server.MapPath("database/msgs/") & "\" & file.FileName)
file.SaveAs (Server.MapPath("database/msgs/") & "\" & file.FileName)
' -----------------------------
'
If Err.Number=0 then
direction="saved"
Else
direction="error: " & Err.description
End if

end if
Next

Set myUpload=nothing

' error management

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

txtupl
Number of files =1
Name =usblog.txt
Size =89
D:\Inetpub\wwwroot\database\msgs\usblog.txt
saved

-----------
I have been trying to modify the "save" line to any construction to no avail.
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 in that folder.

--------- The one thing that doesn't work: there is no file created! --------------

I am using Win98SE, PWS installed, testing application input from a second PC, locally hubbed.
What am I missing?

Thanks in advance

I have uploaded these asp files to the ISP server
and there it works perfect..

So it has to be some configuration quirk on local PWS
The regsvr32 d:\inetpub\aspSmartUpload.dll has passed without errors
The aspSmartUploadUtil.dll sits in c:\windows, %path% settings include c:\windows;

I have searched aspSmartupload site for more info, I cant see anything relevant

Why doesn't this upload thing work ???
Any help strongly appreciated


--
Replies in the same thread please
Windows 98 links to solutions
http://jake98.no-ip.info
Best Regards
Jake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top