From: Raymond I. <xw...@ya...> - 2003-10-06 03:21:04
|
See below: --- C Kissinger <cki...@ne...> wrote: > 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. Oh! > I got at least the example's feedback to work if not > the actual file saving > part yet. By default it should not write (or save) anything to the user disk. > ioelmsrv.vbscript.asp > line 45 or 46 (sorry, I added comments) did read: > > If wso_vars.count=0 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 Add to my to-do list > 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. How many persons out there using NN 4.03? I thought more and more users were upgrading their browsers, correct? > 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. Cool but line 16 should be commented out. The .asp file should not by default save the file to the users disk. Best regards, -- Raymond Irving > Christopher Kissinger > Web Development Consultant > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |