G
gnemesis
I am trying to resolve an issue with a file upload control (written by
someone else). This control attempts to validate the file being
uploaded by checking its MIME type. For ths application, the files
being uploaded must be Flash (.flv) files.
The control uses a simple file input control, and checks
PostedFile.ContentType, which for .flv files should be "video/x-flv".
This check seems to work flawlessly MOST of the time, but on a couple
of test machines, the browser reports the MIME type as
"application/octet-stream". This behaviour occurs regardless of the
browser used (I have tested Firefox, 3 versions of IE, Safari and
Chrome).
What I have been unable to determine is what might cause the browser
to mis-report the MIME type. I have eliminated the file itslf as the
issue, since I have performed my testing with the same file on all
test platforms.
Any assistance with this one would be most appreciated.
=jeff
someone else). This control attempts to validate the file being
uploaded by checking its MIME type. For ths application, the files
being uploaded must be Flash (.flv) files.
The control uses a simple file input control, and checks
PostedFile.ContentType, which for .flv files should be "video/x-flv".
This check seems to work flawlessly MOST of the time, but on a couple
of test machines, the browser reports the MIME type as
"application/octet-stream". This behaviour occurs regardless of the
browser used (I have tested Firefox, 3 versions of IE, Safari and
Chrome).
What I have been unable to determine is what might cause the browser
to mis-report the MIME type. I have eliminated the file itslf as the
issue, since I have performed my testing with the same file on all
test platforms.
Any assistance with this one would be most appreciated.
=jeff