Google Answers Logo
View Question
 
Q: FTP Question ( No Answer,   1 Comment )
Question  
Subject: FTP Question
Category: Computers > Programming
Asked by: johnhharrington-ga
List Price: $2.00
Posted: 21 Mar 2003 00:39 PST
Expires: 20 Apr 2003 01:39 PDT
Question ID: 179067
I have set up my FTP space, and anonymous guests are able to download
images via FTP with their browser. The think I really need/want them
to be able to do is click a "Download Photo" button, and have the
prompt come up asking where the want to save the file, rather than
having that file come up in the browser window. I have tried varying
my coding, such as:
ftp://ftp.mysite.com/photo.jpg
ftp://mysite.com/photo.jpg
ftp://www.mysite.com/photo.jpg
http://ftp.mysite.com/photo.jpg

and none of them make a difference. What is the coding to make this
happen? Thanks in advance!

John

Request for Question Clarification by alexander-ga on 22 Mar 2003 01:28 PST
What you ask cannot be done when images are retrieved via FTP. FTP
provides no Content-Type information, and how the browser handles the
image is entirely up to it.

If you are serving the images via HTTP, yourtech is correct -- you
need to change the Content-Type header generated by your web server.
How to do this varies from server to server, however, so to get an
appropriate answer, you'll need to let us know what web server
software you're using.
Answer  
There is no answer at this time.

Comments  
Subject: Re: FTP Question
From: yourtech-ga on 21 Mar 2003 00:57 PST
 
I don't think it can be done if they are getting the file through your
FTP server.  You CAN do this through HTTP by changing the MIMETYPE
header in the HTTP header to BINARY/FILE... this is done on IIS with a
"response.header()" function... something like that anyhow.  I'd give
you EXACT answers if I was a "answer" person here and collecting the
$$$.

I've done this for images, PDFs, Word docs, etc, so they don't show in
the browser.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy