Hi Thanks for your reply's. I was very happy with the registry tip from Tore. Because it needs to reed every contenttype it isn't wise to hardcode it.
altough the registry only holds my own registered contenttypes i do believe this is the best option, giving a application/unknown type to filestypes that don't exist in my registry. regards remie bolte ----- Original Message ----- From: "Robert Chartier" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 9:22 PM Subject: RE: File Content Type - REPOST > > Check the extension > > .jpg = image/jpg > .gif = image/gif > .txt = text/plain > > etc.. > > > > > > -----Original Message----- > From: Remie Bolte [mailto:asplist@;vinrem.nl] > Sent: Tuesday, November 05, 2002 9:23 AM > To: ActiveServerPages > Subject: File Content Type - REPOST > > > 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 > > > -- This is a repost because the message didn't seem to be posted. if it > did get to the list, i'm sorry for the duplicate > > > --- > 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.unsub%% > --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
