Read the excerpt from MSDN (Microsoft Developer's Network) at the bottom of this message.
So, Javascipt or VBScript won't work on IE, which is the lion share of browsers.
About JAVA. I would write the applet if I thought it was the best solution. In the past, I steered away from JAVA due to the lack of JAVA support with the classic Mac OS. Now with OS X, this is not as much of an issue. However, there are still two major obstacles in my mind:
1. JAVA still does not work consistently enough on Mac browsers, even in OS X.
2. Windows XP does not come with a JAVA runtime. Microsoft, in there effort to kill java, stopped including the runtime in there newest OS, which is becoming more and more an issue as more people move to XP. The JAVA runtime environment is a pretty significant, and intrusive download. I still have trouble getting everyone to use the latest flash plugin, this would be worse.
Active X would be a great solution, but completely eliminates the Mac. And I know that wouldn't work for you (Garth) of all people. Like me, you deal with mac clients a lot.
So far, I see the only solution is to use RealBasic. That would allow me many methods of transport, like FTP, or direct database insert. It would allow me to check size, and even better, allow me to have a user drop any type of image of any size, and I can use code I have already written to convert to jpeg, resize and upload.
I would love to have another solution that is as quick and flexible as the web. I guess I could build a frame work in RealBasic that would give me this ability, like I have done with templates I use in Witango.
Robert.
MSDN Excerpt: (http://msdn.microsoft.com/msdnmag/issues/0500/web/default.aspx)
[If I read your question correctly, you are trying to use the file upload capability in Microsoft� Internet Explorer. Before uploading the file to the server, you want to report the file size to the server. To do this with regular scripting, you'd have to gain access to the client file system, which is off-limits to Web pages.
There are several ways to do this. One is to create an ActiveX control. This control, being a regular executable, would have full access to the system and file properties on the client's machine. It could fetch the file size and expose this information to your Web page via a scriptable interface. Your Web page could then use that information appropriately.
Another way to do this is to change the extension of your HTML file to .hta. This essentially turns your Web page into an HTML executable, giving it full access to the client system. Downloading an HTA file is identified as being insecure, so this solution will present the same warnings to the user that are presented when downloading an ActiveX control. But unlike an ActiveX control, an HTA file can't be digitally signed, so to the user it will seem even more dangerous. However, it will be able to use the File object, from which you can get the size of a particular file.
For more information about HTA files, check out the article "Writing HTML Applications for Internet Explorer 5.0," by Scott Roberts, in the July 1999 issue of Microsoft Internet Developer.
For information about the various file system objects, check out http://msdn.microsoft.com/scripting/vbscript/doc/vbsfsoTOC.htm.]
On Sunday, March 23, 2003, at 06:55 PM, Garth Penglase wrote:
Well Robert, if I remember correctly, two different methods for establishing/limiting file sizes in uplodas have been suggested in previous discussions. One was a javascript and one was an external process using someone's custom made taf. So it is possible to limit file sizes on uploads - though as you say, probably not foolproof, but your main point still stands, and it does seem that large files are going to cause serious slowness on servers.
--
Robert Garcia President - BigHead Technology CTO - eventpix.com 2781 N Carlmont Pl Simi Valley, Ca 93065 ph: 805.522.8577 - cell: 805.501.1390 [EMAIL PROTECTED] - [EMAIL PROTECTED] http://bighead.net/ - http://eventpix.com/ - http://theradmac.com/
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body
