Allowed extentions
Its pretty obvious that the script cannot parse all kinds of filetypes, so its also usefull to specify what filetypes are to be handled by the visitor's browser. We can do this by adding extentions to our disalowedExt-array.
The dissalowedExt-array contains all extentions that we want the browser to handle, for example zip-files, xls, rar, etc. By default these extentions are handled by your browser:
- zip
- rar
- jpg
- png
- jpeg
- gif
- bmp
- tar
- iso
- img
- exe
- rss
- ai
- psd
- txt
- dwt
You don't need to change the disallowedExt-array, but it saves you a 3-second error message.
Code
You can easily add filetypes to the disallowedExt-array, see the example below:
bda.disallowedExt.push('xls');
// this will add the "xls"-extention to the disallowed extentions