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 PROTECTED]

Reply via email to