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 |
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 |
From: Leif W <war...@us...> - 2003-10-06 15:16:15
|
----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Sunday, October 05, 2003 11:21 PM Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp [snip] > Cool but line 16 should be commented out. The .asp > file should not by default save the file to the users > disk. Should this be the same in all other language versions as well, so by default any of these example installations lying around on the net aren't giving free unrestrained ability to upload files? Probably better for security. And leave a note saying that's why it's commented out in the example, and a note on the example page too. [snip] Leif |
From: Raymond I. <xw...@ya...> - 2003-10-06 15:41:28
|
--- Leif W <war...@us...> wrote: > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: <dyn...@li...> > Sent: Sunday, October 05, 2003 11:21 PM > Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp > ... > Should this be the same in all other language > versions as well, so by > default any of these example installations lying > around on the net aren't > giving free unrestrained ability to upload files? > Probably better for > security. And leave a note saying that's why it's > commented out in the > example, and a note on the example page too. > Yes, I think the same should go for the others as well. This is better for security reasons. -- Raymond Irving > .... > > Leif > > > > > ------------------------------------------------------- > 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 |
From: Leif W <war...@us...> - 2003-10-06 18:11:10
|
[-] Added comment about file upload example disabled by default. Added PHP file upload example, commented out. Leif ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: <dyn...@li...> Sent: Monday, October 06, 2003 11:41 AM Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp > > > --- Leif W <war...@us...> wrote: > > ----- Original Message ----- > > From: "Raymond Irving" <xw...@ya...> > > To: <dyn...@li...> > > Sent: Sunday, October 05, 2003 11:21 PM > > Subject: Re: [Dynapi-Dev] IOElement UPLOAD .asp > > ... > > Should this be the same in all other language > > versions as well, so by > > default any of these example installations lying > > around on the net aren't > > giving free unrestrained ability to upload files? > > Probably better for > > security. And leave a note saying that's why it's > > commented out in the > > example, and a note on the example page too. > > > > Yes, I think the same should go for the others as > well. This is better for security reasons. > > -- > Raymond Irving > > > .... > > > > Leif > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > ------------------------------------------------------- > 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.../ > > |
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 |