Re: forced download
I wrote a small rant about MediaView and file downloads, see if you can make some use of it: http://dsi.vozibrale.com/articles/view/mediaview-is-a-bleeding-bastard Cheers! On May 7, 2:27 pm, crazyDavid <[EMAIL PROTECTED]> wrote: > hi! i'm developing an application where the user uploads and downloads > file. But during downloads, the files like jpegs, txt, those openable > in the browser open in the browser itself. but i need them to come out > as pop-ups or dialouge box with "save as" or a download manager/ > accelerator software to assist in download. how can this be done? > thanks for the help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: forced download
What headers would your session like to set after your file outputs? I would honestly be interested in knowing but I can't figure out what would come after the file headers. In my head, the session is initiated and taken care of way before I end up in a view outputting a file. /Martin On May 11, 9:44 pm, crazyDavid <[EMAIL PROTECTED]> wrote: > Thank you Traique and jonknee for the reply. > > But as i'm using session, it doesn't allow me to send header info > later. > > On May 7, 5:32 pm, jonknee <[EMAIL PROTECTED]> wrote: > > > > hi! i'm developing an application where the user uploads and downloads > > > file. But during downloads, the files like jpegs, txt, those openable > > > in the browser open in the browser itself. but i need them to come out > > > as pop-ups or dialouge box with "save as" or a download manager/ > > > accelerator software to assist in download. how can this be done? > > > thanks for the help! > > > You need to send a content-disposition header. Example in PHP: > > > > > > The header() docs have more information:http://us.php.net/header --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: forced download
On Mon, May 12, 2008 at 1:14 AM, crazyDavid <[EMAIL PROTECTED]> wrote: > > Thank you Traique and jonknee for the reply. > > But as i'm using session, it doesn't allow me to send header info > later. Use output buffering (read about the ob_ series of functions) OR Figure out how to use mediaview Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: forced download
Thank you Traique and jonknee for the reply. But as i'm using session, it doesn't allow me to send header info later. On May 7, 5:32 pm, jonknee <[EMAIL PROTECTED]> wrote: > > hi! i'm developing an application where the user uploads and downloads > > file. But during downloads, the files like jpegs, txt, those openable > > in the browser open in the browser itself. but i need them to come out > > as pop-ups or dialouge box with "save as" or a download manager/ > > accelerator software to assist in download. how can this be done? > > thanks for the help! > > You need to send a content-disposition header. Example in PHP: > > > > The header() docs have more information:http://us.php.net/header --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: forced download
> hi! i'm developing an application where the user uploads and downloads > file. But during downloads, the files like jpegs, txt, those openable > in the browser open in the browser itself. but i need them to come out > as pop-ups or dialouge box with "save as" or a download manager/ > accelerator software to assist in download. how can this be done? > thanks for the help! You need to send a content-disposition header. Example in PHP: The header() docs have more information: http://us.php.net/header --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: forced download
On Wed, May 7, 2008 at 5:57 PM, crazyDavid <[EMAIL PROTECTED]> wrote: > as pop-ups or dialouge box with "save as" or a download manager/ > accelerator software to assist in download. how can this be done? > thanks for the help! header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename='$yourfilename;'); OR figure out how to use mediaview HTH Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
forced download
hi! i'm developing an application where the user uploads and downloads file. But during downloads, the files like jpegs, txt, those openable in the browser open in the browser itself. but i need them to come out as pop-ups or dialouge box with "save as" or a download manager/ accelerator software to assist in download. how can this be done? thanks for the help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---