Intercept/handle mime type/file
问题 How do you disable the default action for .torrent files/content-type application/x-bittorrent(eg open with dialog or run program) and instead handle the data in a extension? 回答1: Based on @nmaiers post this is how you do it: This is how you do it IF the mime type already exists. If it doesn't exist I don't know how to add it, probably some register function. For some reason the type for my torrent s is application/x-download I have no idea why. If you want info on how I figured that out than