Questions tagged [download]

Receiving data to a local system from a remote system, or to initiate such a data transfer. Do not use this tag for question asking where to download off-site resource.

18430 questions
337
votes
9 answers

Returning a file to View/Download in ASP.NET MVC

I'm encountering a problem sending files stored in a database back to the user in ASP.NET MVC. What I want is a view listing two links, one to view the file and let the mimetype sent to the browser determine how it should be handled, and the other…
Nick Albrecht
  • 16,607
  • 10
  • 66
  • 101
315
votes
8 answers

How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?

There is an online HTTP directory that I have access to. I have tried to download all sub-directories and files via wget. But, the problem is that when wget downloads sub-directories it downloads the index.html file which contains the list of files…
Omar
  • 6,681
  • 5
  • 21
  • 36
311
votes
6 answers

Skip download if files already exist in wget?

This is simplest example running wget: wget http://www.example.com/images/misc/pic.png but how to make wget skip download if pic.pngis already available?
nais inpoh gan
  • 3,159
  • 2
  • 15
  • 5
299
votes
10 answers

JavaScript blob filename without link

How do you set the name of a blob file in JavaScript when force downloading it through window.location? function newFile(data) { var json = JSON.stringify(data); var blob = new Blob([json], {type: "octet/stream"}); var url =…
Ash Blue
  • 5,344
  • 5
  • 30
  • 36
284
votes
12 answers

How can I create download link in HTML?

I have a basic idea of HTML. I want to create the download link in my sample website, but I don't have idea of how to create it. How do I make a link to download a file rather than visit it?
Venkat
  • 20,802
  • 26
  • 75
  • 84
281
votes
8 answers

BitBucket - download source as ZIP

I know I can get the project through git clone command, but is there any way, how to download the project through the web interface from BitBucket.org? In the best way, I am looking for a way to download a project source as ZIP compress file.
user984621
  • 46,344
  • 73
  • 224
  • 412
264
votes
32 answers

How do I download a file with Angular2 or greater

I have a WebApi / MVC app for which I am developing an angular2 client (to replace MVC). I am having some troubles understanding how Angular saves a file. The request is ok (works fine with MVC, and we can log the data received) but I can't figure…
rll
  • 5,509
  • 3
  • 31
  • 46
257
votes
12 answers

How to change the timeout on a .NET WebClient object

I am trying to download a client's data to my local machine (programatically) and their webserver is very, very slow which is causing a timeout in my WebClient object. Here is my code: WebClient webClient = new WebClient(); webClient.Encoding =…
Ryall
  • 12,010
  • 11
  • 53
  • 77
247
votes
19 answers

Multiple simultaneous downloads using Wget?

I'm using wget to download website content, but wget downloads the files one by one. How can I make wget download using 4 simultaneous connections?
jubo
  • 2,479
  • 2
  • 15
  • 3
233
votes
1 answer

Download a working local copy of a webpage

I would like to download a local copy of a web page and get all of the css, images, javascript, etc. In previous discussions (e.g. here and here, both of which are more than two years old), two suggestions are generally put forward: wget -p and…
brahn
  • 12,096
  • 11
  • 39
  • 49
227
votes
7 answers

Downloading images with node.js

I'm trying to write a script to download images using node.js. This is what I have so far: var maxLength = 10 // 10mb var download = function(uri, callback) { http.request(uri) .on('response', function(res) { if…
Jonathan Ong
  • 19,927
  • 17
  • 79
  • 118
225
votes
20 answers

Create a CSV File for a user in PHP

I have data in a MySQL database. I am sending the user a URL to get their data out as a CSV file. I have the e-mailing of the link, MySQL query, etc. covered. How can I, when they click the link, have a pop-up to download a CVS with the record from…
Jason
218
votes
21 answers

Is there a link to GitHub for downloading a file in the latest release of a repository?

Using GitHub's Release feature, it is possible to provide a link to download a specific version of the published software. However, every time a release is made, the gh-page also needs to be updated. Is there a way to get a link to a specific file…
Christian Rondeau
  • 4,143
  • 5
  • 28
  • 46
211
votes
10 answers

href image link download on click

I generate normal links like: in a web app. When I click on the link, it displays the picture in a new page. If you want to save the picture, then you need to right click on it and select…
Pierre
  • 4,976
  • 12
  • 54
  • 76
209
votes
19 answers

Force to open "Save As..." popup open at text link click for PDF in HTML

I have some big size PDF catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open the "Save As..." popup at link click...
designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99