Forum How do I...?

Tell prince not to attempt to download files w/unknown mime

euler
Hi All

I have some html that we run through prince and generally works fine...except when there are links to things like video files.

If the video file is small enough, prince downloads it, determines that it doesn't deal with that mime type, and moves on.

However, if the video is large enough, the download times out, and prince dies.

It would seem that prince could grab the HEAD first (especially for items where it doesn't recognize the extension in the URL), and based on the Content-Type header decide it's not worth downloading the file; is there a switch to tell prince to act this way?

Thanks
mikeday
There is no switch for this in Prince 8.0. But you could use CSS to disable the link based on the file extension. For example:
embed[src$=.mpg] { content: "Video" } /* or display: none */