[TYPO3-dev] Filename of the image after resize.

Marcus 'biesior' Biesioroff vsbies at wp.pl
Tue May 26 20:24:10 CEST 2009


Jigal van Hemert wrote:

> This is the function to provide "force download" headers which I've been
> using for years now. I haven't tested it with IE8 yet...


Thanks a lot Jigal! finally I made a combo, own names of resized files + 
your download headers, works nice :)

Tell me please how should I output the image? Now I'm using something 
like this (in big shortcut):

[php]
   function makeDownloadable($newName, $originalFilePath){
     $this->DLHeader($newName,'image/jpeg');
     readfile($originalFilePath);
   }
[/php]

And it's workin' but I'm not sure if PHP's readfile(); is best 
practice... What is your opinion ?



-- 
Marcus 'biesior' Biesioroff
a.k.a. Marek Krawczyk (original)

Polish TYPO3 Community Proud Member
http://typo3.pl




More information about the TYPO3-dev mailing list