I think I have told you that many times before: right before you save the file to disk, check the name of the file you're about to save.
My example in C# shows the general idea: simply check the string before you save the file. In
VB Script you can, as I said earlier, use Right:
If LCase(Right(fullFileName, 4)) = ".jpg" Then
' File is a jpg
Else
' File is NOT a jpg
End If
How and where you use this code is up to you, as I can't find head nor tail in the code and description you have posted so far.... ;)
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.