Re: CAKEPHP PDF File Download Problem MAC PC Safari Browser.

2012-06-05 Thread netors
do this when you output the pdf content: header("Content-type: application/pdf"); echo $content_for_pdf; exit(); On Monday, January 2, 2012 12:08:58 AM UTC-6, Arif wrote: > > > Dear All, > > CAKEPHP Download Problem IN MAC PC Safari Browser : > > Currently My PDF File Possible to download by Moz

Re: CAKEPHP PDF File Download Problem MAC PC Safari Browser.

2012-01-02 Thread Kanwal
arif Are you using download link on website?Then here is answer link('Pdf', '/files/myfile.pdf'); ?> or link('pdf', $this->webroot('files'.DS.'test.pdf'); ? > or for newer version of cakephp link('pdf', $html->webroot('files'.DS.'test.pdf'); ? > or Link Text On Jan 2, 11:08 am, arif hossen wro

CAKEPHP PDF File Download Problem MAC PC Safari Browser.

2012-01-01 Thread arif hossen
Dear All, CAKEPHP Download Problem IN MAC PC Safari Browser : Currently My PDF File Possible to download by Mozilla, IE, Safari from windows. When i download pdf file from MAC Pc Safari Browser then facing problem. When i download pdf file from mac safari browser then add extra extension .html

Re: File Download Problem

2008-10-29 Thread Smelly_Eddie
Da-Omiete Iboroma I'm not sure why your email didn't make it to the board, but I'll try to answer. The file /etc/my.cnf and /etc/my.ini are interchangeable I believe. Just depends on the naming convention in use. The critical thing is to include the 'group' [mysqld] and to restart mysql /et

Re: File Download Problem

2008-10-26 Thread Smelly_Eddie
I just discovered that the default value on mysql server is 1MB. You can increase the value by adding the following lines to /etc/my.cnf. [mysqld] max_allowed_packet=8M On Oct 23, 1:49 pm, Smelly_Eddie <[EMAIL PROTECTED]> wrote: > I know your uploading to MySQL, but it might be the php engine th

Re: File Download Problem

2008-10-23 Thread Smelly_Eddie
I know your uploading to MySQL, but it might be the php engine that iss cutting you off. Check max_upload_size in php.ini, it might be set to 1 MB. My site's db only uses a Medium blob, and as you can see I have a 1.3 MB file, among others. 1 [BLOB - 23.7 KiB] 1 [BLOB - 715 B] 1

Re: File Download Problem

2008-10-22 Thread Da-Omiete Iboroma
Thanks but I am using just that. But it cannot upload any file that is more than 999kb. Is there any configuration that I will do to phpmyadmin so that it can upload files that are more than 999kb? Thanks On 10/21/08, Thanga Durai <[EMAIL PROTECTED]> wrote: > If you are using blob data type m

Re: File Download Problem

2008-10-21 Thread Thanga Durai
If you are using blob data type make it as longblob. Thangadurai. On Tue, Oct 21, 2008 at 4:57 PM, AD7six <[EMAIL PROTECTED]> wrote: > > > > On Oct 20, 3:41 pm, "Da-Omiete Iboroma" <[EMAIL PROTECTED]> wrote: > > Please I am having problem downloading pdf (Acrobat reader) files that > > I uploade

Re: File Download Problem

2008-10-21 Thread AD7six
On Oct 20, 3:41 pm, "Da-Omiete Iboroma" <[EMAIL PROTECTED]> wrote: > Please I am having problem downloading pdf (Acrobat reader) files that > I uploaded in mysql database. > > The file downloads but it does not embed the pdf file in the browser. > > Instead, it opens the pdf file and make the cu

Re: File Download Problem

2008-10-20 Thread Thanga Durai
Hi, Just try by removing the below line from the header header( "Content -Disposition: attachment; name=$filename" ); Thangadurai. On Mon, Oct 20, 2008 at 8:07 PM, Da-Omiete Iboroma <[EMAIL PROTECTED]>wrote: > > Thanks Martin, I included header("Content-disposition: inline; > filename=$filenam

Re: File Download Problem

2008-10-20 Thread Da-Omiete Iboroma
Thanks Martin, I included header("Content-disposition: inline; filename=$filename"); but it did not make any difference. Thanks anyway Damelinks On 10/20/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > As far as I know, it is the browser that decides what to do with a > file. > You can do

Re: File Download Problem

2008-10-20 Thread [EMAIL PROTECTED]
As far as I know, it is the browser that decides what to do with a file. You can do the following: header("Content-disposition: inline; filename=$filename"); ... but that is no guarantee that the browser will have a acrobat- plugin installed. /Martin On Oct 20, 3:41 pm, "Da-Omiete Iboroma" <[EM

File Download Problem

2008-10-20 Thread Da-Omiete Iboroma
Please I am having problem downloading pdf (Acrobat reader) files that I uploaded in mysql database. The file downloads but it does not embed the pdf file in the browser. Instead, it opens the pdf file and make the current page blank Below is the file download code. Pls help me http://www.ur

Re: file download problem in cakephp

2006-07-19 Thread John David Anderson (_psychic_)
On Jul 19, 2006, at 4:23 PM, srini wrote: > > This cakephp method does not work. It is prefixing '\r\n' charecters > at the bigining of the downloaded file. So I cannot open image, pdf, > doc file. > I wasted a lot of time trying to figure out this problem. > Please suggest a work around. I re

file download problem in cakephp

2006-07-19 Thread srini
Hi, I got the following stand alone php script working for file downloads: I copied the code and created a new method in a cakephp controller: function download2() { $file = "C:\\test\\asinglerose8ev.gif"; $basename = basename($file); $file_extension = strtolower(su