Php prints file instead of download

Changes: 1. Added a Flag to specify if you want download to be resumable or not 2. Some error checking and data cleanup for invalid/multiple ranges based on 3.

The library does not require jQuery, but you can use jQuery to define your document content. form is the best way to generate a file download directly from JavaScript. location, instead try using a server-side agent such as PHP or Ruby. use screen styles instead of print styles // } }) }