Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PixelsCommander/Download-File-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

22 Commits

Repository files navigation

DOWNLOAD JS

Intelligent JavaScript solution for file downloading. Easy to use - just call downloadFile(URL) global function.

See it in action

Article about

Why DownloadJS?

  • Avoids stupid blank screens after file starts downloading in Chrome, Safari;
  • Ignores content type by using virtual link with "download" attribute. So file will be downloaded even if content type says browser to show file`s content in new window. This allows to download PNGs, HTMLs and so on;
  • Small function without any dependencies.
  • Informs user if downloading is restricted on his device avoiding unpredicted behaviour.

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/PixelsCommander/Download-File-JS/issues

License

Copyright 2013 Denis Radin.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

About

Intelligent JavaScript solution for file downloading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /