file-download

Restricting Save Location in Web Application?

I have a web application (ASP.NET MVC, running on IIS7) that exports files to CSV. All was fine and well, until the client requested that due to security concerns, only specific directory locations should be valid targets for the resulting "save" dialog when I send the correct MIME type and send all the data. Is this possible? An alter...

Is there a good online library of different video formats to use to test my FFMPEG installation?

I want to check that users will be able to encode the main video formats using FFMPEG running on a server. So far most of the videos I have tried have worked but want to find out where things may fall down. Is there a good list and hopefully attached files to download showing the main video formats for video that users will find online a...

How to make a private download area with django?

Hello I would like to implement a private download area on a website powered by django. The user would have to be logged in with the appropriate rights in order to be able to get some static files. What would you recommend for writing this feature. Any tips or tricks? Thanks in advance Update: Maybe because of my bad english or my la...

Limits and wait times like Rapidshare

I have an open environment, no logins, where a number of files can be downloaded. I'm now trying to set up a wait time feature and a bandwidth limit per visitor per period of time type thing (similar to what Rapidshare has if you've ever used them before). Any ideas how I should go about implementing this? I'm on PHP so all its restrict...

Download to iphone via iphone app

Hi All.. In my iPhone application i want to allow a user to download a file.(video file) From a UIWebview i have linked download button to the video file. Didnt worked ! Any ideas ? Please help ! ...

Download manager in Java

I need to several some huge files (several gigs) from Java via FTP/HTTP. Is there a ready library (java / command line tool) to facilitate the download? Some obvious requirements are: Multi-connection download - should be able to open several connections to the server to accelerate the download (like FlashGet/GetRight/...) Resume a dow...

Site gets unresponsive after file download. What do I do wrong?

I have the code below that i use to download a file from the HDD. The problem I get is that if I stop a download in the middle or after the download ends, the site becomes unresponsive. Any idea why? The environment is LAMP. . . . // get mime type if ($dwld_allowed_ext[$fext] == '') { $mtype = ''; // mime type is not set, get fr...

R Package Download and Usage Statistics

I have submitted a package to CRAN and am interested in how much it has been used. Is there a way to get the number of downloads from the CRAN website? ...

Scala and html: download an image (*.jpg, ect) to Hard drive

Ive got a Scala program that downloads and parses html. I got the links to the image files form the html, Now I need to transfer those images to my hard drive. Im wondering what the best Scala method I should use. my connection code: import java.net._ import java.io._ import _root_.java.io.Reader import org.xml.sax.InputSource import ...

How do I download a file with WWW::Mechanize after it submits a form?

I have the code: #!/usr/bin/perl use strict; use WWW::Mechanize; my $url = 'http://divxsubtitles.net/page_subtitleinformation.php?ID=111292'; my $m = WWW::Mechanize->new(autocheck => 1); $m->get($url); $m->form_number(2); $m->click(); my $response = $m->res(); print $m->response->headers->as_string; It submits the download button on ...

Data getting truncated on filedownload with Reponse.BinaryWrite() OR Response.TransmitFile() data

Okay so i have page which bacially gets a file as a Byte[] from a webservice which I then give a Save/Cancel dialogue to the user to save that file. This file can either be xml or cvs format. When the file is downloaded the file is incomplete e.g. This is what the file should have: USD,EUR,Euro,1.2,1.1,11/15/2009,15:23:27 USD,AUD,Austral...

How do I optimise file downloads in ASP.NET?

I have ASP.NET application which allows users to download a file when he/she enters a password. I use code below to send file to user: Context.Response.Clear(); Context.Response.ContentType = "application/pdf"; Context.Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName); Context.Response.BinaryWrite(File.ReadA...

detecting pdf download

I have recently added functionality for generating pdf reports to a web application. However the reports can be quite large and take some time to show the pdf download dialog. I want to show a spinner until the report is ready but have no way of knowing when the dialog appears. any suggestions would be much appreciated. thanks, shawn ...

how to invoke the file download window in javascript?

Hi all, I have got a PDF fle which i would like my users to download when they click on a button/link/image.Is this possible? Thank You ...

Open file and save

I want to download a file and save it locally without any pop ups for user to choose location since its predefined. File format will most probably be pdf. Download file path will be an url and I want to save it locally. Do I go to work like this: string fileName = "http://mail.example.com/download.asp?saveFile=example.pdf"; BinaryRea...

Download and Store Multiple Files with Adobe AIR ( Flash CS4 Dev)

How do you download multiple images from a server and store them on in the application directory in Flash IDE , Adobe AIR? Specifically, I am using AMFPHP to pull the paths out of a DB and download them to the application directory. ...

How to automatically download all my pics from my website not using FTP?

On one free web-hosted place I build a site, well not actually a site, but just uploaded a folder with many sub folders inside containing many pictures. Now, I have discovered that this hosting is going to close soon and they gave their users one month t save all the materials. Of course, i can enter each folder manually and use "Save as...

Is is possible to Download pdf file through pure html?

I'm using link tag to open a pdf file. when clicking that link, the pdf file is opened directly. Is it possible to donwload and save the pdf file to my system through html? ...

Segmented C# file downloader

Hi All, Have been trying to write a program in C# that downloads a file using multiple segments at once like most download managers, and I've run into the issue that the files downloaded are corrupted. E.g. I download a video and it plays for 2 seconds then WMP says it's unplayable. I hexedited the downloaded file and it appears there ...

How to show file download progress in PHP Shell Scripting?

Hiya, I have a php shell script that downloads a large file, it would be a bit of a luxury to be able to see the progress of the download in shell while it's happening, anyone have any idea how this can be achieved (or at least point me in the right direction!) Thanks! ...