S
Steve West
How do you save files to a pc using html? I know how to browse and get
files, but do not know how to save them.
Steve
files, but do not know how to save them.
Steve
Steve said:How do you save files to a pc using html?
Steve said:How do you save files to a pc using html? I know how to browse and get
files, but do not know how to save them.
How do you get the file download box to come up? And how does the pc ask forDavid Dorward said:You don't. You provide a link to the file and let the user's preferences
decide how that file will be handled.
How do you get the file download box to come up? And how does the pc ask for
and receive the file?
Steve said:How do you get the file download box to come up? And how does the pc ask for
and receive the file?
Steve
google mime filtypes - the server sends the file type; it's up to the PC
to decide what to do with it - i.e. play it if it is a video file,
display it if it is a jpeg, blah, blah, blah. You as the server have no
idea what the client's capabilities are; all you can do is send the file...
Here's what I use to allow a user to print/send/save an image off my server:
<FORM>
<INPUT class="button" NAME="print" TYPE="button" VALUE="Print"
ONCLICK="varitext()">
<input class="button" type=button value="Save"
onclick="JavaScript:document.location.href='http://URLofFileToSave'">
<input class="button" type=button value="Email"
onclick="JavaScript:document.location.href='http://URLofEmailForm'">
<input class="button" type=button value="Close"
onclick="self.close()">
</FORM>
Hywel said:Have you got a URL that shows that in action? I fail to see how
specifying location.href to a JPEG will cause the "Save As" dialog.
Well, yes.... It won't. It calls a php routine which then prods the
browser to do something....
Steve said:">
What does the php routine do to cause the browser to prompt for saving the
file? I am writing all the server and php code to handle these matters.
Steve
Benjamin said:Search für 'Content-Disposition' - can't write more now, my daugther is
calling![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.