The code I posted in reply #1 has all that stuff. It closes the connection, and allows for downloads of both those file types, plus many more, like gif, jpg and ico files.
The code I posted in reply #1 has all that stuff. It closes the connection, and allows for downloads of both those file types, plus many more, like gif, jpg and ico files.