I have uploaded PDF file in web directory. I get that files as shown below:
$webPath = $this->container->getParameter('kernel.root_dir') . '/../web/uploads/foldername/';
$filename = $webPath . $finddata->getUploadedFileName();
$filename = str_replace("\\", '/', $filename);
It gives me path as below:
D:/xampp/htdocs/projectname/app/../web/uploads/foldername/filename
But I want http path of it.
Can any body help me for this to get http path?