D
David Lozzi
Howdy,
I have a simple file uploader in a form, and I take the image and check for
the file extension. Now I when upload a jpg image in FireFox the content
type is image/jpeg. When I upload the SAME EXACT file from the same location
using Internet Explorer it registers as a image/pjpeg. My understanding is
that IE translates it to a progressive jpeg and FF doesn't care. Any
speacial reason why? Can I avoid this in the script so it treats all files
exactly how they are? Are there other file formats that IE and FF conflict
on?
Dim fn As String = f.PostedFile.ContentType
If fn <> "image/jpeg" And fn <> "image/bmp" And fn <>
"image/png" And fn <> "image/gif" Then
Thanks,
David Lozzi
I have a simple file uploader in a form, and I take the image and check for
the file extension. Now I when upload a jpg image in FireFox the content
type is image/jpeg. When I upload the SAME EXACT file from the same location
using Internet Explorer it registers as a image/pjpeg. My understanding is
that IE translates it to a progressive jpeg and FF doesn't care. Any
speacial reason why? Can I avoid this in the script so it treats all files
exactly how they are? Are there other file formats that IE and FF conflict
on?
Dim fn As String = f.PostedFile.ContentType
If fn <> "image/jpeg" And fn <> "image/bmp" And fn <>
"image/png" And fn <> "image/gif" Then
Thanks,
David Lozzi