Hi Misty,
I have had a similar problem in the past with images that have spaces in them. What I generally do is provide a naming convention for all images when I save them, and use a random number generator to give them a unique file name.
For example, news images on a site I have worked on get renamed to be something like "news-image-RANDOMNUMBER.jpg"
On your script, I would suggest changing:
SavePath = Path & "\small_" & File.ExtractFileName
to be:
UpperBound = 100000000
LowerBound = 1
Randomize 'Starts the random generator
RandomNumber = Int(Rnd * UpperBound) + LowerBound
SavePath = Path & "\small_" & RandomNumber & ".jpg"
This will return a file called "small_(Random number between 1 and 1000000000 here).jpg"
An easy way around the file size issue, it simply to get ASPJpeg to do a check on the width and height of the image - as that is usually a good guage of the image size anyway. For example:
If Jpeg.Width > 300 Then
Response.Redirect("error.asp")
End If
Hope that helps!
xxx