|
From: C K. <cki...@ne...> - 2003-10-05 19:50:42
|
I got the latest snapshot last night.
The IOElement .asp is the only one version of IOElement UPLOAD I've =
tried in
the examples so far, but it didn't work.
I got at least the example's feedback to work if not the actual file =
saving
part yet.
ioelmsrv.vbscript.asp
line 45 or 46 (sorry, I added comments) did read:
If wso_vars.count=3D0 Then ReDim arr(0) Else ReDim
arr(wso_vars.count+UBound(wso_jsCommands))
But you can't Ubound a variant array until at least one element is =
defined,
so I changed
line 12 from:
12 Dim wso_jsCommands()
to
12 Dim wso_jsCommands(0)
And at least the feedback portion worked with
IIS 5
--Internet Explorer 6
--Mozilla 1.4
--Netscape 7.1
In Netscape Navigator 4.03 of course I got JavaScript errors about =
"function
does
not always return a value/dynapi not defined/IOElement not defined". If
anyone's
interested, I'll continue porting dynapi's value-returning functions to
always return
a value for poor old NN 4.03. I think it's just good design.
I've used a similar solution before in ASP for uploads, and I imagine =
that
to actually
save the uploaded file, you would add a line in
dynapi.util.ioelement-upload.asp after
line 15 to be something like:
14 ...
15 Call wsAddVariable("size",File.FileSize)
16 File.SaveToDisk(Server.MapPath(strRelativePath)) '*****Code Added =
Line
16
17 Next
18 ...
I'll try this part next.
Christopher Kissinger=20
Web Development Consultant
|