|
Hans, I've created a few web pages served by both Windows NT and Unix, and create links for files to be downloaded and everything works fine without me, in my web page, specifying a MIME type. Is this handled by the server automatically? And does the AS/400 have to be setup manually to do this? I just don't understand. Regards, Jim Langston boldt@ca.ibm.com wrote: > > Jim wrote: > >Well, all you have to do is provide a web page with a link to > >the file you want them to be able to download. Then when they > >click on this, you serve them that "page" which is actually the > >file to download. > > > >Their browser will then ask them where they want to save the file. > > Fine so far. Just link to the file using the "anchor" tag. > > >Browsers look at the extension of files to determine what to do > >with them, display them as .HTM or HTML files, run or save them as > >.EXE or .ZIP files, play them as media files, etc... > > No. Browsers look at the MIME type, not the file extension. > (IE, however, violates the HTTP standards and often insists on > rendering data based on content or file extension regardless of > MIME type.) > > >You really don't need to worry about that, just serve them the object, > >the file, and their browser will take care of the rest. > > You may have to configure the server to present the proper MIME > type in the HTTP header, though. Be sure to test using Netscape. > Since IE isn't totally compliant to the standards, you can't use > it to tell if you're doing things properly. > > Hans > > Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.