Forum Moderators: coopster

Message Too Old, No Replies

Zend Image Upload Nightmare

uploading is fine but cant retrieve

         

delboy1978uk

9:24 am on Dec 1, 2010 (gmt 0)

10+ Year Member



hi everyone
i managed to get my site to accept user uploads, and of course they are stored in a directory out of the publicly accessible part of the site.

in the old fashioned non zend way i would put this
<img src="imgFeeder.php?img=file.jpg" />

and in imgFeeder.php it would get the file from the directory, send the headers, and the image would be returned.

how would i do this in a zend way? if i call header() the page doesnt render, and i get the little image placeholder

if i dont call header, the page displays, but the image is encoded wrong and comes out as a string of heiroglyphics!

i believe it has something to do with something about this:
$this->getRequest()->getResponse()
but maybe not, can anyone help?




however, i used to use this little bit of code to

coopster

3:45 pm on Dec 15, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No Zend users around here that can assist?