Quantcast

Looking for a current solution of "accessing the uploaded images outside public folder"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Looking for a current solution of "accessing the uploaded images outside public folder"

effectjam
According to, the "Recommended Project Directory Structure" of Zend 1.11 on this link http://framework.zend.com/manual/1.11/en/project-structure.project.html.

I followed this structured implementation and successfully created an uploaded form to the "data/uploads", I tried to access that images from my view.

The error showed up is "NetworkError: 404 Not Found - https://my.local/data/uploads/IMG_0052_resize.jpg". I guess this is because Zend can't access private folder except public then I tried to search for a solution first as recommended. Some told to create a controller and return an image content type(I am not sure that this is a good solution because I might have to create each controller for each uploaded image), some told to configure the .htaccess. However, all of that suggestions are quite old 2008-2009. Can someone tell me how to overcome this problem?

With respect.

Loading...