file-download

Resuming file downloads in Ruby on Rails (Range: header support)

Hi guys, I am trying to make my Rails app support resuming of downloads, since we serve quite large files from there. I found a piece of middleware to do this long ago, but I cant find it again. Any tips/tricks on how to pull it off? Thanks! :) ...

C#: How to TDD a file downloader

I would like to create a simple downloading tool. Give it a list of urls, a target directory and hit go. It would then download those files and dump them in the target directory. Simple enough. But, I would like to practice TDD as well. But how would you do TDD in such an application? I can see 4 main parts of application: A download ...

Identifying the download status of a file in web application

Hi, I am developing a web application in .Net 2005 in C#. Here there is a provision that allows the user to download the file from our server which will be mostly .doc files. So I am using Response.TransmitFile and content-disposition header method to write the file to the client. My current requirement is to identify the status of the...

Drupal - Ubercart file download link not working from e-mail.

I have Drupal 6 installed with Ubercart 2.0. When an anonymous user purchases a product from Ubercart, a new account is automatically created for them and they are emailed a link to download the file associated with the product. The link doesn't work unless they are logged in, which does not happen for them automatically. I need one o...

Avoid WebDav requests on request for downloading .doc file

We have WebDAV activated on our server. And when we try to make a download of a word file from the server with the content-type "application/msword" a WebDAV authentication popup is shown. I do not want this popup. The file should just be downloaded and opened without The only way I can avoid this, is giving it content-type "applicatio...

Can't download word document, throwing exception

I'm using response object to download word document which is stored in database as a content. It is throwing the following exception : SubStatusCode 'Response.SubStatusCode' threw an exception of type 'System.PlatformNotSupportedException' base {"This operation requires IIS integrated pipeline mode."} System.NotSupportedException {Sy...

ajax request to download an excel file is showing me truncated response

I am trying to download an Excel file using Ajax (XMLHttpRequest). On completion the responseText is found to have just 5 characters. The network sniffing tool (Fiddler) is showing me that my computer received the entire file.. so why is the responseText showing me only 5 characters? I have tried both Synch and Asynch calls. Thanks ...

Downloading files on Android

I'm in the middle of writing an Android app, and would like to give my users the ability to share the document files it creates. What I'd ideally like to see would be files hosted on a HTTP server somewhere, so a user can simply fire up their browser on the Android phone, surf to the relevant page, and then download the file to their ph...

How to implement the View or Download functionality like gmail in PHP?

If you click view,you'll open that file in browser, while download will pop up a dialog to save that file on your disk. ...

mod_xsendfile alternatives for a shared hosting service without it

I'm trying to log download statistics for .pdfs and .zips (5-25MB) in a rails app that I'm currently developing and I just hit a brick wall; I found out our shared hosting provider doesn't support mod_xsendfile. The sources I've read state that without this, multiple downloads could potentially cause a DoS issue—something I'm definitely ...

Sending correct file size with PHP download script

I created a file download script in PHP, it works, but web browsers report the file as "Unknown Length". My code is as follows: function downloadFile($file){ // Set up the download system... header('Content-Description: File Transfer'); header('Content-Type: '.mime_content_type($file)); header('Content-Disposition: attachment; ...

Servlet - how to download multiples files from database

I look around and it seems that zipping all the files together is the way to go. If that the case this is the design I am thinking of doing. Please let me know if there is more efficient way of doing this Client select multiples file of downloading, then click Download servlet receive the requests, then do multiple SELECT (files are sa...

Download File - VB6

Hello Everybody, Does anyone know how to download a file (without opening a webpage), and save it to a directory in Visual Basic 6.0? Its a pretty straightforward question, so I'll just leave it like that... Thanks, Kevin ...

A multi-part/threaded downloader via python?

I've seen a few threaded downloaders online, and even a few multi-part downloaders (HTTP). I haven't seen them together as a class/function. If any of you have a class/function lying around, that I can just drop into any of my applications where I need to grab multiple files, I'd be much obliged. If there is there a library/framework ...

Using Urlllib2.urlopen fails for binary data?

I'm using python to programatically download a zip file from a web server. Using a web browser, it's fine. I've written this (partial) script; response = urllib2.urlopen(url, data, 10) the_page = response.read() f = open(filename, 'w') f.write(the_page) f.close() The request succeeds and I get data. The problem is that the file I'm do...

On forcing download: File Download dialog opens twice in IE6 SP1

My ASP.Net page is supposed to create a document and force its download (open a "File Download" dialog). It works fine on most browsers but for some reason, on IE6 SP1 (windows 2000) the "File Download" dialog opens twice. Any ideas why? My very simple code (C#): protected void bnCreateDocument_Click(object sender, EventArgs e) { ...

please tell me which one is faster desktop application or web application in .net

i am to create a application which will send an xml file through https protocol and get a xml file as a response. and this process will go for more then lac. times(continusly to download all xml files around 1-2 lac.). so please tell me i should create a desktop application for this (in .net) or asp.net . and should i use threading for t...

Check For Updates

I'm developing a application in Lazarus, that need to check if there is a new version of a XML file on every Form_Create. How can I do this? ...

Download file using urllib in Python with the wget -c feature

Hello, I am programming a software in Python to download HTTP PDF from a database. Sometimes the download stop with this message : retrieval incomplete: got only 3617232 out of 10689634 bytes How can I ask the download to restart where it stops using the 206 Partial Content HTTP feature ? I can do it using wget -c and it works pret...

Java code for downloading files

(original title: help a newbie (Java)) I need a java code for downloading files from the internet ..For example I want to download doc,pdf files from the internet means i have to do it through my code ..So can anyone help me ...