Hi,

I need to upload images(jpegs and gifs) to the server. This I've managed. But what I haven't been able to do is check whether the file being uploaded is a valid one or not. For example, if I open notepad and then save the file with a .jpg extension, and then try to upload it, it gets uploaded. which should not happpen. Any ideas on how I can prevent this???

Thanx.