My app delivers jpeg images and zip files through the media view. Even though the content length is specified correctly in the response headers, the browser doesn't use it to display the download progress.
These are the request and response headers: GET http://localhost/test/DSC03701.jpg Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Content Size[3342590] Mime Type[image/ jpeg] Date[Fri, 15 Jan 2010 20:44:12 GMT] Server[Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin- Patch] X-Powered-By[PHP/5.2.6-3ubuntu4.5] P3P[CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"] Content-Disposition[attachment; filename="DSC03701.JPG.jpg";] Expires[0] Accept-Ranges[bytes] Cache-Control[private] Pragma[private] Content-Length[3342590] Keep-Alive[timeout=15, max=100] Connection[Keep-Alive] Content-Type[application/octet-stream] These are the response headers when downloading the same file directly from a web accessible directory: GET http://localhost/site/pictures/download/350 Load Flags [LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Content Size[3342590] Mime Type[application/octet-stream] Date[Fri, 15 Jan 2010 20:42:04 GMT] Server[Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 with Suhosin- Patch] Last-Modified[Fri, 15 Jan 2010 17:20:20 GMT] Etag["207c-3300fe-47d3737d7a190"] Accept-Ranges[bytes] Content-Length[3342590] Keep-Alive[timeout=15, max=94] Connection[Keep-Alive] Content-Type[image/jpeg] Tested with FF 3.5.7 and Chrome 4.0.249.43. My media view variables: [name] => abcde [id] => abcde.jpg [extension] => jpg [path] => /home/bram/public_html/site/app/uploads/ [download] => 1 Does anyone have a clue what's going on here? What do browsers expect and how can I tweak the media view parameters to let it download *with* progress indication? B
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en