file-download

simultaneous files downloading in python and qt

Hi there. In my program I need to download 3-4 files simultaneously (from different servers which are quite slow). I'm aware of the solution involving python threads or qt threads, but I'm wondering: since it seems to be a quite common task, maybe there's a library which I feed with urls and simply receive the files? Thanks in advance! ...

php apache and temporary files

I have a web based application which server's content to authenticated users by interacting with a soap server. The soap server has file's which the user's need to be able to download. What is the best way to serve these files to users? When a user requests a file, my server will make a soap call to the soap server to pull the file a...

Which file downloads are blocked by Internet Explorer's Security Bar?

Standard scenario: ajax-heavy web application with reports that can be downloaded as files. Problem: Internet explorer blocks file downloads with its yellow "security bar". When you click on the bar and allow to download, the whole page gets refreshed and data entered is lost. Question: what counts as a blockable download? Does it look...

How to resume download in PYTHON, using urlretrieve function??

Can anyone tell me how to resume a download? I'm using urlretrieve function. If there is an interruption, the download restarts from the beginning. I want the program to read the size of localfile (which I m able to do) and then resume the download from that very byte onwards. ...

how to open file with its application

i want to ask how to open specific file (the file out of the server, i have a relative path to it stored in config file) with its application when click on specific link button or hyper link... like :: open .docx with word. or .pdf with acrobat reader i tried several methods but , i get different errors like "Cannot use a leading .....

.xlsx downloading issue

I have generated .xlsx reports on server, and page with direct links to these reports. When user clicks a link, report file is downloaded, but file extension is changed to .xls. Therefore, I can't open file correctly, only after changing of extension. Problem occurs in IE, Firefox correctly downloads file, and Chrome saves file with name...

How do you know when a download has started from JavaScript?

Hi all, Basically, I would like to wait for the IE save dialog box to open up, and then run the next line of JavaScript. Something like: `window.open(URL,"_self",...);` window.alert("save dialog started"); Can this be done? Thanks Grae I came up with this: var iframe = document.getElementById("dFrameID"); ...

c# asp.net FTP Error

I get "System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet" when trying to download an item from an ftp(which have access to). The upload seems to work fine and is done similarly I'll post both functions below: private void Download(string filePath, string fileName) {...

What is the best way to handle this: large download via PHP + slow connection from client = script timeout before file is completely downloaded

My client wanted a way to offer downloads to users, but only after they fill out a registration form (basically name and email). An email is sent to the user with the links for the downloadable content. The links contain a registration hash unique to the package, file, and user, and they actually go to a PHP page that logs each download ...

what is the best tracking download method in php / java script ?

Hi if i like to track and get all the possible info about users that downloading my application without forcing them to register what is the best php script for this ? or the best method to mange downloads? ...

Python - How do I save a file delivered from html?

Hi I have a form which when submitted by a user redirects to a thank you page and the file chosen for download begins to download. How can I save this file using python? I can use python's urllib.urlopen to open the url to post to but the html returned is the thank you page, which I suspected it would be. Is there a solution that allow...

Is there a way to tell browsers to disable the "run" button when downloading an EXE?

It may be convenient for some of the unlimited bandwidth types to let your users continually download your product and continually forget where they put it and redownload it. But perception of scarcity of is the beginning of wisdom as the bail bondsman said to the coroner as he brought in the week's catch in a two meter gunny sack and I...

Download large file in Android

I have an app that downloads a very large file (over 50MB). Unfortunately I'm getting reports that the download fails. Below is the logcat of one such failure, which ends with a java.net.SocketException: The operation timed out. In-between it has various messages from the WifiMonitor. I don't know how to interpret these messages. Is ...

What causes a "Cannot register a null resource" error in ICEfaces?

Java EE 5, JSF 1.2 with Facelets, ICEfaces 1.8.2 What can cause a "Cannot register a null resource" error in ICEfaces, using an ice:outputResource tag? From the ICEfaces source code, it looks like it's when the resource is null (duh), but I'm positive that it isn't. Are there any other possible causes? ...

JSP Download file with filename containing spaces

I have a JSP page that handles file downloads. I set the response header like so: response.setContentType("application/octet-stream"); response.addHeader("Content-Disposition","attachment; filename="+fileName); When the fileName contains spaces (i.e. "Business Report.doc"), the browser's dialog window saves the file as "Business". I...

Link to download image instead of view image

I need to provide website visitors a link to download an original high resolution image. If I simply link to the image with a href="image.jpg", the browser displays the image. How do I make the browser download it? I'm using amazon S3 to server these images... If this requires having a special header set on the image, I'm sure it's po...

Download Request - iPhone SDK

Hello everyone, I am trying to create an app where the user clicks on a download link through a UIWebView and it will present a pop-up saying "do you want to download this file". I just don't know how to get the download request when the user taps on a download link. If anyone knows how to do this please leave a reply. thanks, Kevin ...

How do I code my ASP.NET page to parallelize downloads across hostnames?

Google Page Speed test tells me I need to distribute my queries across DNS Domain names to speed up rendering. Since I do development offline, I'd like to find a solution that will distribute my static content (img, CSS, js) across different hostnames, and will still work when I'm offline in an airplane. Q: How can I code my page to u...

PHP multiple file download

I've seen this example on the documentation for PHP readfile <?php $file = 'monkey.gif'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binar...

How to make a video or audio file HTTP response always download instead of play in browser?

Have some audio and video files that users are to download, however depending on the file type or browser the browser may attempt to play the file instead of downloading it. This is not desired, how can I avoid this? The anchor will be a direct link to the file unless I need to create some sort of Action to handle this properly. I am usi...