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: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On Behalf >>> Of Raymond Irving >>> Sent: Sunday, October 05, 2003 10:21 PM >>> To: [EMAIL PROTECTED] >>> Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp >>> >>> >>> >>> See below: >>> >>> --- C Kissinger <[EMAIL PROTECTED]> 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 >>> > [EMAIL PROTECTED] >>> > >>> http://www.mail-archive.com/[EMAIL PROTECTED]/ >>> >>> >>> __________________________________ >>> Do you Yahoo!? >>> The New Yahoo! Shopping - with improved product search >>> http://shopping.yahoo.com >>> >>> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/