The "Content Type" is a part of the HTTP (and email) header(s), and as such will not be found inside a file.
Your best shot is probably to use the registry, where the key HKEY_CLASSES_ROOT\MIME\Database\Content Type contains a subkey for each MIME type - each with a value named Extension. If you start with a file name, you can look up the file's extension (including the leading dot) under HKEY_CLASSES_ROOT. If the extension has a registered content type, it contains a Value named Content Type. HTH, Tore. ----- Original Message ----- From: "Remie Bolte" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 11:24 AM Subject: File Content Type > Hi Guys > > I want to get a file of the HD and see what content-type it has. > i know you can get the contenttype when uploading, and i was woundering... > > A) is there a standard function in the filesystem or any other default > component that gets the Contenttype > B) can the code on asp101.com (pure ASP file upload) be rewritten to read > HD files instead of the request.binaryread() outcome. > > regards > > remie bolte > > > > --- > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
