| |||||||||||
| |||||||||||
retrieving blobs with names Posted by ggeezz (ggeezz), 2 November 2004 I have a question similar to questions that have been answered here. I have a php application that is storing files as blobs in a MySQL database. I am accessing the files with something like <a href=file.php?id=xx>. This is working fine, except that when someone saves the file the default file name is file.php. I have the filename stored in the table but do not know of any way to make the browser take the default name. Anyone have any ideas? Posted by admin (Graham Ellis), 3 November 2004 Hello ...Here's a program called savepeople.php4 that sends the contents of a file called requests.xyz out to your browser and saves it there as a file called hello.txt. I think it's the sort of thing that you're lloking for / will be able to adapt. Code:
It's online at http://www.wellho.net/demo/savepeople.php4 if you want to try it out. Posted by ggeezz (ggeezz), 3 November 2004 That was what I was looking for. Thank you very much.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |