From: C K. <cki...@ne...> - 2003-10-06 17:29:03
|
Sorry if I missed that this is already being worked on/to do. Yes, I wouldn't want a page in the examples to actually write uploaded = files to the server. I was checking if that's the right syntax for it, and BTW it does work. I REEEALLY like documentation, does anyone have any new finished docs = not in the snapshot? I'll update my quickrefs and the object model treeview for IOElement and submit a link for review. With all the add/changes to DynAPI, and still learning it myself, I've = let the object model slip. P.S. NN 4.03 is my problem, I was checking for interest in this mutation = since I'm doing it anyway. DynAPI is pretty polished, so it usually just takes quick fixes. Some end users' fixation on back-compat. with stone age technology is amazing... >>> -----Original Message----- >>> From: dyn...@li...=20 >>> [mailto:dyn...@li...] On Behalf=20 >>> Of Raymond Irving >>> Sent: Sunday, October 05, 2003 10:21 PM >>> To: dyn...@li... >>> Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp >>> =20 >>> =20 >>> =20 >>> See below: >>> =20 >>> --- 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. >>> =20 >>> Oh! >>> =20 >>> > I got at least the example's feedback to work if not >>> > the actual file saving >>> > part yet. >>> =20 >>> By default it should not write (or save) anything to >>> the user disk.=20 >>> =20 >>> > ioelmsrv.vbscript.asp >>> > line 45 or 46 (sorry, I added comments) did read: >>> >=20 >>> > If wso_vars.count=3D0 Then ReDim arr(0) Else ReDim >>> > arr(wso_vars.count+UBound(wso_jsCommands)) >>> >=20 >>> > But you can't Ubound a variant array until at least >>> > one element is defined, >>> > so I changed >>> > line 12 from: >>> >=20 >>> > 12 Dim wso_jsCommands() >>> >=20 >>> > to >>> >=20 >>> > 12 Dim wso_jsCommands(0) >>> >=20 >>> > And at least the feedback portion worked with >>> > IIS 5 >>> > --Internet Explorer 6 >>> > --Mozilla 1.4 >>> > --Netscape 7.1 >>> =20 >>> Add to my to-do list >>> =20 >>> > 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. >>> =20 >>> How many persons out there using NN 4.03? I thought >>> more and more users were upgrading their browsers, >>> correct? >>> =20 >>> > 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: >>> >=20 >>> > 14 ... >>> > 15 Call wsAddVariable("size",File.FileSize) >>> > 16 File.SaveToDisk(Server.MapPath(strRelativePath)) >>> > '*****Code Added Line >>> > 16 >>> > 17 Next >>> > 18 ... >>> >=20 >>> > I'll try this part next. >>> =20 >>> Cool but line 16 should be commented out. The .asp >>> file should not by default save the file to the users >>> disk. >>> =20 >>> Best regards, >>> =20 >>> -- >>> Raymond Irving >>> =20 >>> > Christopher Kissinger=20 >>> > Web Development Consultant >>> >=20 >>> >=20 >>> >=20 >>> > >>> ------------------------------------------------------- >>> > 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.../ >>> =20 >>> =20 >>> __________________________________ >>> Do you Yahoo!? >>> The New Yahoo! Shopping - with improved product search >>> http://shopping.yahoo.com >>> =20 >>> =20 |