Welcome to WebmasterWorld Guest from 100.26.182.28

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Zend Image Upload Nightmare

uploading is fine but cant retrieve

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

Junior Member

10+ Year Member

joined:Mar 25, 2004
posts: 161
votes: 0


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
3:45 pm on Dec 15, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


No Zend users around here that can assist?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members