I post a good amount of videos as attachments. Avg size 5-15mb. For the most part, they work.
However, there are issues. In any browser, sometimes just clicking on the attachment leads to a codec error (even though there is none). This is much more common in FF than IE. Right-click and save in IE is fine, but in FF it attempts to save as attachment.php, which most users don't understand. Most users also don't try to save the file even when instructed to anyway.
So I thought maybe I'd wipe out the mime type, see what happens. I did that and simply clicking on the attachment in FF gives a "save" option. It says XML as a file type, but saves the file correctly. Perfect. However - in IE it still opens Windows Media Player, but gives an error, so I added the mime type back.
For reference, I'm using this in the mime type field:
Content-type: video/x-ms-wmv
So I'm thinking maybe I'll modify attachment.php to only deliver the mime type if it's an IE browser? Just thinking outloud about this situation, looking for any suggestions from someone who might have run into the same problem.
However, there are issues. In any browser, sometimes just clicking on the attachment leads to a codec error (even though there is none). This is much more common in FF than IE. Right-click and save in IE is fine, but in FF it attempts to save as attachment.php, which most users don't understand. Most users also don't try to save the file even when instructed to anyway.
So I thought maybe I'd wipe out the mime type, see what happens. I did that and simply clicking on the attachment in FF gives a "save" option. It says XML as a file type, but saves the file correctly. Perfect. However - in IE it still opens Windows Media Player, but gives an error, so I added the mime type back.
For reference, I'm using this in the mime type field:
Content-type: video/x-ms-wmv
So I'm thinking maybe I'll modify attachment.php to only deliver the mime type if it's an IE browser? Just thinking outloud about this situation, looking for any suggestions from someone who might have run into the same problem.
Comment