Giter Site home page Giter Site logo

download-file-js's People

Contributors

pixelscommander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

download-file-js's Issues

can not rename file in chrome

chrome version: 42.0.2311.152 m

i use Download-File-JS to download verify code image, every image mush have a unique name,

here is the problem:

there is no response header like Content-Disposition: attachment; filename="aaa.jpg", but even i set download attribute to 'xxxx.jpg', still save as aaa.jpg, how can i handle this.

[improvement] Cleanup?

It seems to me this package leaves newly created DOM element hanging around. Perhaps this should be cleaned up afterwards.

The code on this page disabled back and forward caching.

I tried the demo page and change the sUrl on the fly with a random image I found in Google. Instead of downloading the file, the page was redirected to the file and display the image in the page.
I'm getting something from my console though..
"The code on this page disabled back and forward caching."
Any idea how to deal with this issue?

IE10 says it is a pop-up

I've added download-file-js to my app and it works in chrome. In IE10 though it says it is a popup, just like it did when using window.open.

NPM package?

Hi, thanks for this handy lib.

it would be great if it can be used as dependency.

Is it possible to publish it?

Can I use this on click?

I have a thumb and when clicking on the thumb I would like to be able to download the large version.
Can this script be used? (I'm not a coder)

Pdf files

Hi,

Thanks for this mini plugin. I tried to implement it on a wordpress trying to launch a download of a pdf file.

This plugins works for Chrome and Opera, but not for Firefox and Safari (didn't tried onf IE).

So my only option was to make a php files to force the download of a pdf files to be sure it works on every browser.

If you find a way to force this download in javascript I would be happy to hear it ! :)

How to name the file?

Hi

I'm using downloadFile on a video stream, but I don't know how to name the file. I have no control of that stream, it's from 3rd party, so I can't set filename on header.

Any help would be very appreciated.

window.open is not a function in FF

Hi,
your Plugin works fine in Chrome but in FF (25.0.1) i get the error "TypeError: window.open ist not a function" (download.js:27).

I can't figure out why and can imagine that this might be a noob-issue.

Can you think of something that could cause FF to throw that error? Of course i can add more information and code, if that's necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.