I'm writing an app that lets the user upload an Excel file. It checks the file for errors, then, if no errors are found, it uploads the contents to a database. If it does find errors, the cells containing errors are colored red, then the file is saved. I then want to create a download link to this file so the user can check where they made mistakes. 
The problem is that I am not sure how to create this link and where to store the file. I modify the file like this:

```
foreach ($badCells as $bcell) {
                $sheet->getStyle($bcell)->applyFromArray(array(
                    'fill' => array(
                        'type' => \PHPExcel_Style_Fill::FILL_SOLID,
                        'color' => array('rgb' => 'FF4444')
                    )
                ));
            }

```

And then save it with

```
$objWriter->save($dldir . $formData['upload']['name']);

```

$dldir is created with

```
$dldir = "/download/";
        if (file_exists($dldir)) {
            if (!is_dir($dldir)) {
                unlink($dldir);
                mkdir($dldir);
            }
        } else {
            if(!is_dir($dldir)) {
                mkdir($dldir);
            }
        }

```

Is this even the right way to do this? Can I store the files in any old folder or do they have go somewhere specific? How do I create the link to the specific file in the view for the user and make it accessible so they can download it?