Re: Download code




"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message
news:W-ednUfe0eT3P3_bnZ2dnUVZ_tajnZ2d@xxxxxxxxxxxxxx
Sheldon Glickler wrote:
I have a set of jpg files on a page. I want to give the user the option
to downloadd all of them at once. What is the code to do that? It must
exist because many times users are presented with a download button and
there must be something behind it. Even if it is one file at a time, I
can loop through the list. As for a name, I can use the current name and
if it is one at a time, then the user can name each one.

Alternatively, I could zip it up into one file and then have the
download.

So, I have two questions:

1 - What is the code to download a file to the user's computer?
2 - How do I zip up a set of jpg files on the server?

Shelly

Of course you do know they can always download an image by right-clicking
on the image and selecting "Save Image..." (or whatever wording their
browser uses) option. No PHP required.

Of course I know that! However, most users are not overly computer literate
and I would have to give them explicit instructions on what to do. A button
saying "Download" is much easier on the SU. (stupid user). Also, I would
like to have a button that says "Download All Pictures". For either of
these I need code behind the button submit.

Shelly


.



Relevant Pages

  • Re: Problem with postback after Response.Write
    ... the browser makes a request to the server ... What is this ActiveX control? ... > server after the download dialog has completed. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Table -> CSS help needed
    ... from the server, so the pages are slow even without showing them. ... I think the circumstances where my browser doesn't ... I know you can block images. ... download) them, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Screenscraping question ... URGENT
    ... access the data manually, without any problem when I use my browser, however, I am trying to automate the donloading of the data, using a C# application. ... However when I try to use an "HTTP get" from C#, I get a message from the server saying that "No Automatic downloads allowed". ... I normally manually download it myself, but I am going away on holiday for 2 weeks, and I will not have access to a computer,, so all I want to do, is to leave my computer switched on, and let my program download the data on my behalf - its not like I will be using a mega computer to overwhelm the server or anything, but I want to be able to do what I normally do everyday, using my browser - thats all. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Convert Database content into a file on the server
    ... the server to be accessed using the browser. ... before it is actually displayed in the browser. ... active x component that can be used so that the content of a large pdf file ... after the change you will only have to download the pdf file 'virtually' ...
    (microsoft.public.scripting.vbscript)
  • Need to download exact copy of text file...little squares replace carriage returns
    ... I need to download a text file from my server. ... program to email it and another to make the browser download the file ... client into my local browser and it opens up in notepad without the ...
    (comp.lang.perl.misc)