Msg#: 3498748 posted 3:16 pm on Nov 7, 2007 (gmt 0)
I have some excel files stored in a mysql datatbase that I have displayed in a table. When I click the link to the file and download it, it want's to save the files name as the name of the php page. For instance the link to the file is "fixme.xls" but when I download it and save it to my computer it plugs in "page_name.php" so I have to rename the file to the .xls file name. Is there a way to avoid this?
Msg#: 3498748 posted 11:38 am on Nov 8, 2007 (gmt 0)
I have some excel files stored in a mysql datatbase that I have displayed in a table.
I am not going to respond to that specific question, but let you know that you could do this differently if you are not aware of this yet.
Except on very rare cases, it is not recommended to store any kind of file inside a DB. The best way to do is to let the file get stored outside the somewhere in the server and save the file and path in the DB. File is safe, no corruption and no huge sized DBs.