Egon, Thanks for your response. My comments below.
> On Tuesday 10 September 2002 11:28, Michael T Howard wrote: >> > In case of webservers attaching a mime-type this is mostly not a >> > problem, because the server administrator knows which format the >> > served .mol files have. >> >> If I understand you correctly, you are saying that a web administrator >> might map the extension .mol to something other than >> chemical/x-mdl-molfile.OK ... that seems curious ... but I guess I >> asked for it :-) > > That is true... a web server just maps a filename extension with a mime > type. Understood. The part I am still struggling with is that 1. web servers/applications depend on file content being consistent with filename extensions 2. you guys are doing a great job of building an application in a web world with web tools 3. it is a shame that you feel you can't depend on file extension being correct Just an honest opinion/feedback from a newcomer. > >> So, in an applet context, does jmol use the mime-type information? Or >> does it try to deduce the file type from the input stream using the >> ReaderFactory mechanism? > > No, I do not believe this is currently done. A patch is not difficult > though (attached)... Note that it depends on who you trust more... > Jmol or the web server administrator... Moreover, I think the > ReaderFactory should better return a Reader based on the MIME type > (unlike the patch)... I'm sorry, I don't understand which you are saying you prefer. Do you prefer using the mime type? Or do you prefer having the ReaderFactory make the decision? > > Egon > Thanks, Michael ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers