pixelscommander / download-file-js Goto Github PK
View Code? Open in Web Editor NEWIntelligent JavaScript solution for file downloading.
Home Page: pixelscommander.com/polygon/downloadjs/
Intelligent JavaScript solution for file downloading.
Home Page: pixelscommander.com/polygon/downloadjs/
https://github.com/PixelsCommander/Download-File-JS/blob/master/src/download.js#L31
This needs to parse the url and see if it already has query params, appending this param if so. Otherwise it results in a broken link in Firefox (still works in Chrome).
It is not working in internet explorer 11, any possible solution sir ?
PNG and TXT download good, but JPG opens in the browser like image
chrome version: 42.0.2311.152 m
i use Download-File-JS to download verify code image, every image mush have a unique name,
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.
In safari download a img ,just open it
I want to be able to download several images by have the user checkbox the one he wants. The code will place images in the generated zip file client-side and then download.js should download the zip file.
How would this work?
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?
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.
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.
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)
What about download complete callback?
I found that using iframe (like in fork Nannakuhtum@6dcc704) its possible to listen on "load" window event, but what about virtual link clicking?
Is it possible to rename a file on download?
It is doable with download
attribute - http://stackoverflow.com/a/15970037/257815
Hi, thanks for this handy lib.
it would be great if it can be used as dependency.
Is it possible to publish it?
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.
This would be really helpful! Thanks
It seems to me this package leaves newly created DOM element hanging around. Perhaps this should be cleaned up afterwards.
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 ! :)
I have the case where I download a file from an API call (it gets generated on the fly) but first I need to check if there's actually data for the filters I apply and send in the API request.
Is this possible with Download-File-JS?
Some more details on this:
http://stackoverflow.com/questions/22649087/download-file-using-jquery-from-an-api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.