I have write a php code that upload the image to web/uploads/slider which i get through
$dir = $this->container->getParameter('assetic.write_to') . '\uploads\slider';
In my local server(windows apache) it works fine and upload as expected but the problem comes when i used it in live server it creates a folder name 'web\uploads\slider' in a project folder and upload a file in it