Hi all
I'm trying to create a file download page. This page when requested should prompt the user to download a file. Here is the source code for the page:
<?php
header('Content-disposition: attachment; filename=zip.zip')
header('Content-type: application/zip');
readfile('zip.zip');
?>
This works ok.
The problems starts when I wa...
Hi,
I want to allow users to download a large file - around 4GB. I'd like them to have the ability to resume failed downloads.
Can anyone make any recommendations on the best way to do this? Or are there any off the shelf components out there that ppl have had success with?
I'm using IIS7 to host the app.
I've seen a few approaches...
Download fails for authenticated sites. I've tried passing Network Credentials and allowing AutoRedirect but that doesnt work.
The application works fine for URLs that allow downloads with authentication. But my application has to download components from a site that requires authentication. So in a browser..the download url redirects t...
Hi,
Here is a code that I copied from the web
/**
* A simple example that uses HttpClient to perform a GET using Basic
* Authentication. Can be run standalone without parameters.
*
* You need to have JSSE on your classpath for JDK prior to 1.4
*
* @author Michael Becke
*/
public class BasicAuthenticationExample {
/**
...
I would like to use standard ASP.NET file download response, like in other Stack Overflow question.
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition","attachment; filename=logfile.txt");
Response.TransmitFile( Server.MapPath("~/logfile.txt") );
Response.End();
But inside update panel it ...
My web app runs on Apache mod_perl using CGI::Application. I want to provide a download of a generated file. In the past (before we were using mod_perl and CGI::App) I just spooled out a csv file to STDOUT as it was generated. Now I'm shooting for a little more refinement - creating an Excel spreadsheet using Spreadsheet::WriteExcel -...
Hi All,
I'd like to be able to invoke a file download from rails using link to remote. I have the link working okay,it looks like this :
link_to_remote image_tag("icons/ppt_48.png"),
:url => formatted_element_path(@element, :ppt),
:method => :get,
:with => "'stoplight=' + $F('stoplight')"
The response contains the proper fi...
IE randomly closes the connection whenever we try to download a file from our server (mp3 file).
It sometimes downloads the whole file, but it sometimes just doesn't download at all.
I've added %X to the apache logs, and whenever the download fails, instead of "+" I get an "x" in the log.
Does anyone have any idea why this would happe...
Is there some trick to getting a SpringMVC custom view to cause a file download in the broswer? I've implemented the render method from org.springframework.web.servlet.View but the code results in my data being written to the page as a blob of data rather having a download action start.
try {
Document oDoc = (Document) model.get("o...
Is it possible to make an ajax call (using Jquery) to request a file.
(The ajax call passes back a chunk of information) the Server reponds by sending a file or an error message.
If the server sends the file I would like the browser to handle the request so you get the browser's standard file download action.
Is that doable? Or is it ...
I need to copy a remote image (for example http://site.com/image.jpg) to my server. Is this possible?
How do you verify that this is indeed an image?
...
I have a large file I want to download from a server I have root access to. I also have several different, concurrent internet connections from my machine to the server at my disposal.
Do you know of any protocol, (S)FTP client, HTTP client, AFP client, or any other file transfer protocol server and client combination that supports mul...
Hi,
Can anyone suggest the best way to offer a file for download within a SharePoint web part? The file will be dynamically created on request, but I still need to end up with the standard page being displayed as well as the file being downloaded.
Cheers
Moo
...
I'm trying to download a file over HTTP and store its contents in a String, as the title says. My approach is thus:
URL u = new URL("http://url/file.txt");
ByteArrayBuffer baf = new ByteArrayBuffer(32);
InputStream in = (InputStream) u.getContent();
BufferedInputStream bis = new BufferedInputStream(in);
int buffer;
while((buffer = bi...
On a http website, I have loads of csv files stored which chronological naming scheme. I wrote a PHP program (running on localhost) to programmatically generate each files name using date functions and use file_get_contents() to write the files locally.
I have tested for a limited range of dates and am able to get the files (each around...
I'm looking for a good web based "download manager" open source application. Mainly a web based interface to some files in a Linux server filesystem. I've looked in sourceforge and google can't find a good one. Maybe I'm searching it with the wrong keywords?
PHP is preferred, but can be written in other programming languages as well.
S...
I am looking for an simple online text editor that will load an online file (CSS) and allow a user to make changes then save the file to their desktop. Syntax highlighting would be nice, but not necessary.
I found Edit Pad which would be ideal, except I need to be able to load the content into it. Most of the users I help need step-by-s...
I want to upload a file on my PHP server. I am currently able to upload it on server using the following code but I don't know how I can store it on the server.
How can I store the file in a specific directory?
I also want the users to be able to download the files but only once they log in not before that.
For example i store the fil...
I have a CSV file on my server, if a user clicks on a link it should download, but instead it opens up in my browser window.
My code looks as follows
<a href="files/csv/example/example.csv" class="pagination">Click here to download an example of the "CSV" file</a>
It's a web server normal webserver where I have all of my dev work on...
Hi,
Can one of the Amazon services (their S3 data service, or otherwise) be used to offload server of static files for a Ruby on Rails app, but still support the app's authentication & authorization?
That is such that when the user browser downloaded the initial HTML for one page of the Ruby on Rails application, when it went back fo...