In this project, I am uploading admin submitted files to a folder which is outside of the public folder.
/web/ (the public folder) /upload/ (uploading image to t
You normally do not access directories outside web root.
A quick solution is to add a alias in apache config like
alias
alias /upload/ /www/userid/upload/
inside the virtualhosts
virtualhosts
and use
/upload/photo.jpg