How to detect in advance if a browser will download a file instead of viewing it? -
How to detect in advance if a browser will download a file instead of viewing it? -
sometimes when view file on page on own, browser has default way of viewing it, place in image or video tag, or invoke plugin. other times, downloads file.
sometimes because of headers set server, lets ignore now. file types, doesn't matter headers set -- browser seek download them regardless.
some of types browser view listed in navigator.mimetypes. however, not authoritative. ipad can view microsoft office files not study this.
is there simple way figure out browser going file before it?
browser download
Comments
Post a Comment